A build command that strips typehints from the code during the build.
Project description
This package provides a setup.py build command that strips typehints from the code during the build. This is necessary for code bases that use the typehint features of python 3.6 which sometimes do not work in python 3.5 and are not available before 3.5.
This package is a quick hack to get packages that do not work with older python version because of type hints to work again. However, it only strips things from the typing module in a very primitive manner.
Usage
Add the package to your setup requirements:
setup( ... setup_requires=[ ... 'distutils_build_without_typehints', ... ], ... )
And put an alias in the setup.cfg:
[aliases] build=build_without_typehints
Project details
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
File details
Details for the file distutils_build_without_typehints-0.6.1.tar.gz
.
File metadata
- Download URL: distutils_build_without_typehints-0.6.1.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d744313a39d9f2ac44e0e3bad2d4343ef184f1d730d4c15202cce8d3deaa587 |
|
MD5 | de16d462704a630bfa3b592bf8297ca5 |
|
BLAKE2b-256 | a65c5dfb6e1205e91896261a05d98635f20f0bc5c671143936056fdd19845f7c |
File details
Details for the file distutils_build_without_typehints-0.6.1-py2.py3-none-any.whl
.
File metadata
- Download URL: distutils_build_without_typehints-0.6.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec8013269d1bc05a0a0bf3defc34379be10191ccaef299d44eaf79187b2e2bb0 |
|
MD5 | e7b6641118e9d15db12db986946f360b |
|
BLAKE2b-256 | 102faeeae20f3fde23ff4ce8631f6d1c0a93d976615e97afb3de4d12d9a46ea6 |