setuptools_freeze
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
Metadata
Release files for setuptools-freeze 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| setuptools_freeze-0.0.1.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| setuptools_freeze-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / setuptools_freeze-0.0.1.tar.gz
| Download URL | setuptools_freeze-0.0.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bfd68e18ec79fd8c33830aa29525b617891d6b5238c3fe4cc5febc3db541a20
|
|
BLAKE2b-256 checksum How to use checksums |
776f049409bb022bf2f2e6c8aedf2c975f037dec11ccd30625d9a8b18e5bcf71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / setuptools_freeze-0.0.1-py3-none-any.whl
| Download URL | setuptools_freeze-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2ccb84e9db5b3d5f3a4d21d08b7ebe4c5da15389c6a7adb5857694331855df6
|
|
BLAKE2b-256 checksum How to use checksums |
7aac824d10387867f378b161f077998d428a7d1b0622f483da990be9b5dc79f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for setuptools-freeze 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.