Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Switch to setuptools and add cythonize to build#25

Merged
tompreston merged 1 commit intotompreston:masterfrom
mtreinish:cythonize-on-build
Apr 8, 2019
Merged

Switch to setuptools and add cythonize to build#25
tompreston merged 1 commit intotompreston:masterfrom
mtreinish:cythonize-on-build

Conversation

@mtreinish
Copy link
Contributor

Distutils is not fully supported by pip anymore and on newer versions of
pip packages installed that are using distuils can't be uninstalled.
This can be avoided by switching to setuptools to handle the packaging,
which this commit does.

Also, to enable working on newer versions of python this commit
integrates cythonize to the build workflow. This way regardless of
versions the c source file will be generated at build time by cython
and then compiled instead of manually generating them before the build.
The only tradeoff with this is that Cython becomes a build dependency
and must be installed prior to trying to build python-lirc.

Distutils is not fully supported by pip anymore and on newer versions of
pip packages installed that are using distuils can't be uninstalled.
This can be avoided by switching to setuptools to handle the packaging,
which this commit does.

Also, to enable working on newer versions of python this commit
integrates cythonize to the build workflow. This way regardless of
versions the c source file will be generated at build time by cython
and then compiled instead of manually generating them before the build.
The only tradeoff with this is that Cython becomes a build dependency
and must be installed prior to trying to build python-lirc.
@tompreston
Copy link
Owner

Yeah looks good to me, thanks!

@tompreston tompreston merged commit f5b54f5 into tompreston:master Apr 8, 2019
@mtreinish mtreinish deleted the cythonize-on-build branch April 8, 2019 12:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants