mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
fix windir, fork for MacOS
This commit is contained in:
@@ -14971,6 +14971,11 @@ def ProcessGAMCommand(args):
|
||||
# Run from command line
|
||||
if __name__ == "__main__":
|
||||
freeze_support()
|
||||
if sys.platform == 'darwin':
|
||||
# https://bugs.python.org/issue33725 in Python 3.8.0 seems
|
||||
# to break parallel operations with errors about extra -b
|
||||
# command line arguments
|
||||
multiprocessing.set_start_method('fork')
|
||||
if sys.version_info[0] < 3 or sys.version_info[1] < 5:
|
||||
systemErrorExit(5, 'GAM requires Python 3.5 or newer. You are running %s.%s.%s. Please upgrade your Python version or use one of the binary GAM downloads.' % sys.version_info[:3])
|
||||
sys.exit(ProcessGAMCommand(sys.argv))
|
||||
|
||||
@@ -17,7 +17,7 @@ if [[ "$PYRESULT" != "0" ]] || [[ "$PYVER" != *"$BUILD_PYTHON_VERSION"* ]]; then
|
||||
mkdir python
|
||||
echo "Downloading Python $BUILD_PYTHON_VERSION..."
|
||||
wget --quiet https://www.python.org/ftp/python/$BUILD_PYTHON_VERSION/python-$BUILD_PYTHON_VERSION-embed-amd64.zip
|
||||
7z e python-$BUILD_PYTHON_VERSION-embed-amd64.zip -oC:\Users\travis\python
|
||||
7z e python-$BUILD_PYTHON_VERSION-embed-amd64.zip -opython
|
||||
ls -alRF /c/Users/travis
|
||||
fi
|
||||
until cinst -y wixtoolset; do echo "trying again..."; done
|
||||
|
||||
Reference in New Issue
Block a user