-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
I'm having problems with py2dsc
not interacting well with PEP 517 requires
see here.
For example if using setuptools_scm
to control version numbering the pyproject.toml might look like this:
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"]
[tool.setuptools_scm]
And for legacy setup.py might look like this:
from setuptools import setup
setup(setup_requires=['setuptools_scm'])
This means that building or installing the package will install a third party package only for use by setup.py.
As I understand it, setup.py is not included in in the final .deb
and so the third party package is also not needed. But because py2dsc
runs setup.py
it then errors out with:
dpkg-source: error: aborting due to unexpected upstream changes, see ...
And it lists .eggs/setuptools_scm
and friends as the unexpected changes.
There's a workaround by:
pip install setuptools_scm
Prior to calling py2dsc
but it would be nice if .eggs
there was an inline solution.
DifferentialOrange
Metadata
Metadata
Assignees
Labels
No labels