Merge pull request #1247 from mithro/small-cleanup

Couple of small cleanup changes
This commit is contained in:
Tim Ansell 2020-02-26 21:20:51 -08:00 committed by GitHub
commit 08be5a9d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,7 @@ ifeq ($(shell id -u),0)
endif
# Tools + Environment
IN_ENV = if [ -e env/bin/activate ]; then . env/bin/activate; fi;
IN_ENV = if [ -e env/bin/activate ]; then . env/bin/activate; fi; source utils/environment.python.sh;
env:
virtualenv --python=python3 env
# Install prjxray

View File

@ -3,6 +3,7 @@
intervaltree
junit-xml
numpy
openpyxl
ordered-set
parse
progressbar2
@ -14,4 +15,3 @@ simplejson
sympy
textx
yapf==0.24.0
openpyxl

View File

@ -0,0 +1,6 @@
# FIXME: fasm should be installed into the running Python environment.
export PYTHONPATH="${XRAY_DIR}:${XRAY_DIR}/third_party/fasm:$PYTHONPATH"
# Suppress the following warnings;
# - env/lib/python3.7/distutils/__init__.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
export PYTHONWARNINGS=ignore::DeprecationWarning:distutils

View File

@ -18,7 +18,7 @@ fi
# misc
export XRAY_PART_YAML="${XRAY_DATABASE_DIR}/${XRAY_DATABASE}/${XRAY_PART}/part.yaml"
export PYTHONPATH="${XRAY_DIR}:${XRAY_DIR}/third_party/fasm:$PYTHONPATH"
source $XRAY_UTILS_DIR/environment.python.sh
# tools
export XRAY_GENHEADER="${XRAY_UTILS_DIR}/genheader.sh"

View File

@ -113,7 +113,7 @@ def main(argv):
# List tile types
tile_types = []
for file in files:
match = re.match("^tile_type_(\w+).json$", file)
match = re.match("^tile_type_(\\w+).json$", file)
if match:
tile_types.append(match.group(1))