Integrate "pyinstaller" to "setuptools"
Project description
Integrate “pyinstaller” to “setuptools”. This will make it easy to freeze your package. More precisely, it will create a executable file form the console scripts entry points in your package.
How to use
Add “setuptools_freeze” to your setup requires:
setup( ... setup_requires=[ 'setuptools_freeze', ... ], entry_points={ 'console_scripts': ['<script name>=mypackage.gui:main'] }, ... )
Now you can freeze your project:
python setup.py pyinstaller
This will create the folder “dist/<script name>”, which include the executable file.
If you also use “Inno Setup” to create a executable setup file, you can use the “inno” command. Before that you have to do two thinks. 1. Install “Inno Setup” and add the compiler to your $PATH 2. Add a guid to the setup file Now you can run:
python setup.py inno
Developer nodes
This is still under develop. This is even more a proof of concept, than a beautiful package. But it work for my case and hopefully I will make it beautiful in future.
Developer tools:
python -m pip install --upgrade pip wheel setuptools flake8 tox
Install:
python setup.py install
Test:
python setup.py flake8 python setup.py test
Build:
python setup.py build
ToDo
create build folder if not exist
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for setuptools_freeze-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2ccb84e9db5b3d5f3a4d21d08b7ebe4c5da15389c6a7adb5857694331855df6 |
|
MD5 | 7502d05a4973e1c5bc9f840f6cd3c12a |
|
BLAKE2b-256 | 7aac824d10387867f378b161f077998d428a7d1b0622f483da990be9b5dc79f2 |