Hi Carlos! I am currently working on creating a portable python for all macos users to use a software I am creating at an academic lab I work at so they don't need to install python separately on their own. I successfully created a pkg file which downloads to the user's Downloads folder which works on my own device but there is a SSL module error when used on a different device. I was wondering if you encountered this issue before and could give some guidance about it. Thank you very much!
Create new folder in downloads called portable_python
/configure LDFLAGS="-L/opt/homebrew/opt/xz/lib" CPPFLAGS="-I/opt/homebrew/opt/xz/include" --prefix=/Users/my-device-username/Downloads/portable_python
Hi Carlos! I am currently working on creating a portable python for all macos users to use a software I am creating at an academic lab I work at so they don't need to install python separately on their own. I successfully created a pkg file which downloads to the user's Downloads folder which works on my own device but there is a SSL module error when used on a different device. I was wondering if you encountered this issue before and could give some guidance about it. Thank you very much!
The error I get:
The script I run to use the portable python
Steps I used to create the portable macos python:
cd /Users/my-device-username/Downloads
git clone --branch v3.9.12 https://github.com/python/cpython.git
cd cpython
chmod -R 777 .
Create new folder in downloads called portable_python
/configure LDFLAGS="-L/opt/homebrew/opt/xz/lib" CPPFLAGS="-I/opt/homebrew/opt/xz/include" --prefix=/Users/my-device-username/Downloads/portable_python
make
make install
cd ..
(Back to Downloads folder)pkgbuild --root ./portable_python --identifier com.example.package --version 0.2.13 --install-location "$HOME/Downloads/portable_python" portable_python.pkg