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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file setuptools_freeze-0.0.1.tar.gz.
File metadata
- Download URL: setuptools_freeze-0.0.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bfd68e18ec79fd8c33830aa29525b617891d6b5238c3fe4cc5febc3db541a20
|
|
| MD5 |
5f968b7995d502832e63cfd9734958c4
|
|
| BLAKE2b-256 |
776f049409bb022bf2f2e6c8aedf2c975f037dec11ccd30625d9a8b18e5bcf71
|
File details
Details for the file setuptools_freeze-0.0.1-py3-none-any.whl.
File metadata
- Download URL: setuptools_freeze-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2ccb84e9db5b3d5f3a4d21d08b7ebe4c5da15389c6a7adb5857694331855df6
|
|
| MD5 |
7502d05a4973e1c5bc9f840f6cd3c12a
|
|
| BLAKE2b-256 |
7aac824d10387867f378b161f077998d428a7d1b0622f483da990be9b5dc79f2
|