Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypi distfile for 1.14.0 has weird egg name #114

Closed
0-wiz-0 opened this issue Oct 19, 2016 · 11 comments · Fixed by #117
Closed

pypi distfile for 1.14.0 has weird egg name #114

0-wiz-0 opened this issue Oct 19, 2016 · 11 comments · Fixed by #117

Comments

@0-wiz-0
Copy link

0-wiz-0 commented Oct 19, 2016

The pypi distfile for setuptools_scm-1.14.0 installs an egg with the name:
setuptools_scm-1.14.1.dev0+ng7961046.d20161012-py3.5.egg-info

I expected:
setuptools_scm-1.14.0-py3.5.egg-info

Please fix this.

@RonnyPfannschmidt
Copy link
Contributor

please provide context on how you did install that

@0-wiz-0
Copy link
Author

0-wiz-0 commented Oct 19, 2016

I installed it using pkgsrc, but it doesn't matter, it's easily reproducible outside:

# cd /tmp/a
# tar xzf /path/to/setuptools_scm-1.14.0.tar.gz
# cd setuptools_scm-1.14.0
# python3.5 setup.py install --root=/tmp/foo
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/setuptools_scm
copying setuptools_scm/__init__.py -> build/lib/setuptools_scm
copying setuptools_scm/__main__.py -> build/lib/setuptools_scm
copying setuptools_scm/discover.py -> build/lib/setuptools_scm
copying setuptools_scm/git.py -> build/lib/setuptools_scm
copying setuptools_scm/hacks.py -> build/lib/setuptools_scm
copying setuptools_scm/hg.py -> build/lib/setuptools_scm
copying setuptools_scm/integration.py -> build/lib/setuptools_scm
copying setuptools_scm/utils.py -> build/lib/setuptools_scm
copying setuptools_scm/version.py -> build/lib/setuptools_scm
running install_lib
creating /tmp/foo
creating /tmp/foo/usr
creating /tmp/foo/usr/pkg
creating /tmp/foo/usr/pkg/lib
creating /tmp/foo/usr/pkg/lib/python3.5
creating /tmp/foo/usr/pkg/lib/python3.5/site-packages
creating /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/__init__.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/__main__.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/discover.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/git.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/hacks.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/hg.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/integration.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/utils.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
copying build/lib/setuptools_scm/version.py -> /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/__init__.py to __init__.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/__main__.py to __main__.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/discover.py to discover.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/git.py to git.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/hacks.py to hacks.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/hg.py to hg.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/integration.py to integration.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/utils.py to utils.cpython-35.pyc
byte-compiling /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm/version.py to version.cpython-35.pyc
running install_egg_info
running egg_info
writing setuptools_scm.egg-info/PKG-INFO
writing dependency_links to setuptools_scm.egg-info/dependency_links.txt
writing top-level names to setuptools_scm.egg-info/top_level.txt
writing entry points to setuptools_scm.egg-info/entry_points.txt
reading manifest file 'setuptools_scm.egg-info/SOURCES.txt'
writing manifest file 'setuptools_scm.egg-info/SOURCES.txt'
Copying setuptools_scm.egg-info to /tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm-1.14.1.dev0+ng7961046.d20161012-py3.5.egg-info
running install_scripts
# find /tmp/foo
/tmp/foo
....
/tmp/foo/usr/pkg/lib/python3.5/site-packages/setuptools_scm-1.14.1.dev0+ng7961046.d20161012-py3.5.egg-info
....

@RonnyPfannschmidt
Copy link
Contributor

please run setup.py --version with SETUPTOOLS_SCM_DEBUG=1

@jaraco
Copy link
Member

jaraco commented Oct 19, 2016

I've observed this also.

@0-wiz-0
Copy link
Author

0-wiz-0 commented Oct 19, 2016

# SETUPTOOLS_SCM_DEBUG=1 python3.5 setup.py --version                      
1.14.1.dev0+ng7961046.d20161012

@RonnyPfannschmidt
Copy link
Contributor

@0-wiz-0 with the env var set please, i need the debug output

@jaraco the sdist has the correct version, so it shouldn't be looking into other things - i suspect a interaction/env bug that i would like to isolate (i cant replicate it atm)

@0-wiz-0
Copy link
Author

0-wiz-0 commented Oct 19, 2016

Sorry, there is no additional debug output. See above.

@RonnyPfannschmidt
Copy link
Contributor

i debugged further and can confirm, that python -c 'import setuptools_scm;print setuptools_scm.get_version()' iscorrect while python setup.py --version is not

i am investigating the reasons

@RonnyPfannschmidt
Copy link
Contributor

i found the reason and my mistake

it seems there a interaction issue between travis deploy and setuptools_scm
so while generating the sdist, a part of the metadata was deliberately broken,
so the PKG-INFO/ was correct, and the static metadata in 'setup.py' got incorrectly overwritten

i will have to investigate why that metadata seemingly changed mid-execution

should i pull the sdist release?
the wheel and the eggs seem to be ok

@jaraco
Copy link
Member

jaraco commented Oct 19, 2016 via email

@jaraco
Copy link
Member

jaraco commented Oct 20, 2016

I've tested a release with setuptools_scm-1.15.0rc1 and it worked just fine. Between this and other fixes, I'm eager to see a final release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants