I have an existing python project that is using mostly setup.py
to build the project. The project has 2 x Cython extension modules configured in setup.py.
Initially I did pip install -e .
for development, but since then I'm using python setup.py build_ext --inplace
to rebuild only the extensions when needed. Which is much faster compared to installing the package.
I started migrating the project to pyproject.toml
including the project configs in the [project]
section in pyproject.toml
My setup.py
basically only contains the Cython extension modules, which I understand can not be migrated to 'pyproject.toml' as of yet.
Now my problem: python setup.py build_ext --inplace
doesn't work anymore, because setup.py
doesn't have all the information, and is not consulting pyproject.toml
to read the project config (hence project configs information are missing).
Do I need to revert to my original setup.py/*.cfg config, or is there some way to tell setup.py
to retrieve the config from pyproject.toml
?
pyproject.toml
to configure a package, but I've been using it together withsetup.cfg
, andsetup.py
, and am able to compile Cython extensions withpython3 setup.py build_ext -i
. Do you want me to add an answer with an example? – Vociferant