distutils_build_without_typehints-0.6.1
توضیحات
A build command that strips typehints from the code during the build.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | distutils_build_without_typehints-0.6.1 |
| نام | distutils_build_without_typehints |
| نسخه کتابخانه | 0.6.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Manuel Krebber |
| ایمیل نویسنده | admin@wheerd.de |
| آدرس صفحه اصلی | https://github.com/wheerd/distutils-build-without-typehints |
| آدرس اینترنتی | https://pypi.org/project/distutils_build_without_typehints/ |
| مجوز | MIT |
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
نحوه نصب
نصب پکیج whl distutils_build_without_typehints-0.6.1:
pip install distutils_build_without_typehints-0.6.1.whl
نصب پکیج tar.gz distutils_build_without_typehints-0.6.1:
pip install distutils_build_without_typehints-0.6.1.tar.gz