This repository has been archived by the owner on Nov 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from open-tool-forge/bugfix/broken-python-linux
Bugfix/broken python linux
- Loading branch information
Showing
16 changed files
with
36 additions
and
86 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-519 KB
build-data/linux_x86_64/libpython3.6-minimal_3.6.8-1~18.04.2_amd64.deb
Binary file not shown.
Binary file removed
BIN
-1.63 MB
build-data/linux_x86_64/libpython3.6-stdlib_3.6.8-1~18.04.2_amd64.deb
Binary file not shown.
Binary file added
BIN
+688 KB
build-data/linux_x86_64/libpython3.8-minimal_3.8.2-1ubuntu1.1_amd64.deb
Binary file not shown.
Binary file added
BIN
+1.59 MB
build-data/linux_x86_64/libpython3.8-stdlib_3.8.2-1ubuntu1.1_amd64.deb
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-1.53 MB
build-data/linux_x86_64/python3.6-minimal_3.6.8-1~18.04.2_amd64.deb
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash -x | ||
|
||
set -e | ||
|
||
if [ $ARCH == "linux_x86_64" ]; then | ||
# Install a copy of Python, since Python libraries are not compatible | ||
# across minor versions. | ||
mkdir libpython3 | ||
cd libpython3 | ||
for pkg in $(ls -1 ${WORK_DIR}/build-data/$ARCH/*.deb) | ||
do | ||
echo "Extracting $pkg..." | ||
ar p $pkg data.tar.xz | tar xJ | ||
done | ||
mkdir -p $PACKAGE_DIR/$NAME/lib/python$EMBEDDED_PY_VER | ||
mv usr/lib/python$EMBEDDED_PY_VER/* $PACKAGE_DIR/$NAME/lib/python$EMBEDDED_PY_VER | ||
cd .. | ||
|
||
elif [ $ARCH == "windows_amd64" ]; then | ||
mkdir -p $PACKAGE_DIR/$NAME/lib/python$EMBEDDED_PY_VER | ||
cp -L -R /mingw64/lib/python$EMBEDDED_PY_VER $PACKAGE_DIR/$NAME/lib | ||
# this isn't necessary and takes up ~half the size | ||
rm -rf $PACKAGE_DIR/$NAME/lib/python$EMBEDDED_PY_VER/test | ||
cp /mingw64/bin/{libgcc_s_seh-1.dll,libstdc++-6.dll,libwinpthread-1.dll,libpython$EMBEDDED_PY_VER.dll} $PACKAGE_DIR/$NAME/bin | ||
|
||
elif [ $ARCH == "darwin" ]; then | ||
mkdir -p $PACKAGE_DIR/$NAME/lib/python$EMBEDDED_PY_VER | ||
cp -L -R $CONDA_ROOT/lib/python$EMBEDDED_PY_VER $PACKAGE_DIR/$NAME/lib | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters