summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2020-01-01 23:54:22 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2020-01-01 23:54:22 (GMT)
commit1b975d13c3ae848f1cda830b526d4bcf2bd202f5 (patch)
tree96431811d616c84510315fae57442997934567e7 /.travis.yml
parent315cee3763145f01e600d4c09929743ba474891a (diff)
downloadSCons-1b975d13c3ae848f1cda830b526d4bcf2bd202f5.zip
SCons-1b975d13c3ae848f1cda830b526d4bcf2bd202f5.tar.gz
SCons-1b975d13c3ae848f1cda830b526d4bcf2bd202f5.tar.bz2
try non-sudo'd usercustomize.py file in sys.path[-1] instead of user site dir which is somehow broken
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 7 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml
index 4ad842d..a988b19 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -106,15 +106,15 @@ jobs:
- export PYTHONNOUSERSITE=
# attempt to get a location where we can store the usercustomize.py file
- python -m site
- - export PYSITEDIR=$(python -m site --user-site)
- - sudo mkdir -p $PYSITEDIR
- - sudo touch ${PYSITEDIR}/usercustomize.py
+# - export PYSITEDIR=$(python -m site --user-site)
+ - export PYSITEDIR=$(python -c "import sys; print(sys.path[-1]))
+ - mkdir -p $PYSITEDIR
- export COVERAGE_FILE=$PWD/.coverage
# write the usercustomize.py file so all python processes use coverage and know where the config file is
- - echo "import os" | sudo tee --append ${PYSITEDIR}/usercustomize.py
- - echo "os.environ['COVERAGE_PROCESS_START'] = '$PWD/.coveragerc'" | sudo tee --append ${PYSITEDIR}/usercustomize.py
- - echo "import coverage" | sudo tee --append ${PYSITEDIR}/usercustomize.py
- - echo "coverage.process_startup()" | sudo tee --append ${PYSITEDIR}/usercustomize.py
+ - echo "import os" | tee --append ${PYSITEDIR}/usercustomize.py
+ - echo "os.environ['COVERAGE_PROCESS_START'] = '$PWD/.coveragerc'" | tee --append ${PYSITEDIR}/usercustomize.py
+ - echo "import coverage" | tee --append ${PYSITEDIR}/usercustomize.py
+ - echo "coverage.process_startup()" | tee --append ${PYSITEDIR}/usercustomize.py
script:
- export TOTAL_BUILD_JOBS=1