Upgrading from 0.18 to 0.19 breaks my project's installation
See original GitHub issueI just tried updating the versioneer files in my project from 0.18 to 0.19, however, this completely breaks my installation. I use a setup.py file that is a little more complicated than normal in that I need to compile a bunch of fortran files and modify the build classes. After upgrading to 0.19, I get the eerily uniformative error message:
/opt/miniconda3/envs/py38/lib/python3.8/site-packages/setuptools/dist.py:458: UserWarning: Normalizing 'v4.7.1+32.g2686b7b8.dirty' to '4.7.1+32.g2686b7b8.dirty'
warnings.warn(tmpl.format(**locals()))
error: unknown file type '.f95' (from 'src/PythonWrapper.f95')
Setting tag_prefix = 'v'
in the setup.cfg
file gets rid of the first warning, but the second error persists.
This error is so odd, that it took me a long time to even consider that versioneer was the problem. Replacing the versioneer.py
and _version.py
with the old versions confirms that versioneer 0.19 is the problem.
So, I have no idea how this could occur. I went through the instructions, and the only non-standard thing that I am doing is defining the cmdclass as folllows:
cmdclass = {'sdist': sdist, 'build': build, 'install': install, 'develop': develop}
cmdclass.update(versioneer.get_cmdclass())
Given that this worked beforehand, I suspect that this is not the problem.
Does anyone have any suggestions on how to debug this? I would like to to use 0.19!
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@MarkWieczorek Should be fixed in 0.20. Please reopen if not.
Actually, that was fixed in #232. If you’re comfortable updating your versioneer to current master, then you should be able to fix this by updating your
setup.py
: