No longer need to supply a requirements.txt file if your project doesn't need it.Known IssuesĪdded Python 3.4 on Windows, thanks to - Īdded Python 3.5 on Windows, thanks (again) to. Yes, by supplying the PYPI_URL and PYPI_INDEX_URL environment variables that point to your PyPi mirror. How do I change the PyInstaller version used?Īdd pyinstaller=3.1.1 to your requirements.txt. See the PyInstaller docs for more information. Will generate a spec file for your-script.py in your current working directory. spec file?ĭocker run -v "$(pwd):/src/" cdrx/pyinstaller-linux "pyinstaller your-script.py" Replace wget with the dependencies / package(s) you need to install. spec file and requirements.txt:ĭocker run -v "$(pwd):/src/" -entrypoint /bin/sh cdrx/pyinstaller-linux -c "apt-get update -y & apt-get install -y wget & /entrypoint.sh" If the src folder has a requirements.txt file, the packages will be installed into the environment before PyInstaller runs.įor example, in the folder that has your source code. If you don't have one, you'll need to run PyInstaller once locally to generate it. The source code directory should have your. To build your application, you need to mount your source code into the /src/ volume. The Windows builder runs Wine inside Ubuntu to emulate Windows in Docker. There are two containers, one for Linux and one for Windows builds. TagsĬdrx/pyinstaller-linux and cdrx/pyinstaller-windows both have two tags, :python2 and :python3 which you can use depending on the requirements of your project. Cdrx/pyinstaller-linux and cdrx/pyinstaller-windows are a pair of Docker containers to ease compiling Python applications to binaries / exe files.Ĭurrent PyInstaller version used: 3.6.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |