Skip to content

Commit 22ad4d8

Browse files
committed
osx: specific fixes for osx and virtualenv
1 parent 388b956 commit 22ad4d8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

distribute.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,10 +720,13 @@ function run_pymodules_install() {
720720
fi
721721

722722
debug "Create a requirement file for pure-python modules"
723-
try echo "$PYMODULES" | try sed 's/\ /\n/g' > requirements.txt
723+
try echo "" > requirements.txt
724+
for mod in $PYMODULES; do
725+
echo $mod >> requirements.txt
726+
done
724727

725728
debug "Install pure-python modules via pip in venv"
726-
try bash -c "source venv/bin/activate && env CC=/bin/false CXX=/bin/false $PIP install --target '$SITEPACKAGES_PATH' --download-cache '$PACKAGES_PATH' -r requirements.txt"
729+
try bash -c "source venv/bin/activate && env CC=/bin/false CXX=/bin/false pip install --target '$SITEPACKAGES_PATH' --download-cache '$PACKAGES_PATH' -r requirements.txt"
727730

728731
}
729732

0 commit comments

Comments
 (0)