Skip to main content

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.

Files for distutils_build_without_typehints, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size distutils_build_without_typehints-0.6.1-py2.py3-none-any.whl (8.4 kB) File type Wheel Python version 3.6 Upload date Hashes View hashes
Filename, size distutils_build_without_typehints-0.6.1.tar.gz (7.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page