https://github.com/wheerd/distutils-build-without-typehints
This package provides a setup.py build command that strips typehints from the code during the build.
https://github.com/wheerd/distutils-build-without-typehints
Last synced: about 1 year ago
JSON representation
This package provides a setup.py build command that strips typehints from the code during the build.
- Host: GitHub
- URL: https://github.com/wheerd/distutils-build-without-typehints
- Owner: wheerd
- License: mit
- Created: 2017-01-11T13:22:37.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-12T15:05:49.000Z (over 9 years ago)
- Last Synced: 2025-03-08T15:16:10.086Z (about 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
distutils-build-without-typehints
=================================
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