when ez_setup.py appears at the top-level, it goes missing from the tarball

Bug #239574 reported by Barry Warsaw
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
setuptoolsbzr
Fix Released
Undecided
Unassigned

Bug Description

I have an ez_setup.py in my top-level directory, i.e. it's a sibling to the package directory. This file is maintained under bzr, but 'setup.py sdist' doesn't seem to add it to the tarball. Similarly for eggs.

Revision history for this message
Servilio Afre Puentes (servilio) wrote :

I have just installed version 2.1 from python.org and it is affected by this.

Revision history for this message
Servilio Afre Puentes (servilio) wrote :

Correcting myself: tried to install from python.org, but the install failed because ez_setup.py is missing from the tarball.

Revision history for this message
Maurits van Rees (maurits-vanrees) wrote :
Download full text (5.1 KiB)

To clarify the above statement from Servilio: the setuptools_bzr 2.1 release on PyPI is itself affected by this, so this version cannot be installed. Full traceback here (with python2.4; python2.6 is similar):

$ bin/easy_install setuptools_bzr
Searching for setuptools-bzr
Reading http://pypi.python.org/simple/setuptools_bzr/
Reading https://launchpad.net/setuptoolsbzr
Best match: setuptools-bzr 2.1
Downloading http://pypi.python.org/packages/source/s/setuptools_bzr/setuptools_bzr-2.1.tar.gz#md5=f296133b7e3ffce1d6a2ad31787de0bf
Processing setuptools_bzr-2.1.tar.gz
Running setuptools_bzr-2.1/setup.py -q bdist_egg --dist-dir /var/folders/KA/KAXdMSFEHom0r8QU1jW-Jk+++TI/-Tmp-/easy_install-_FF58A/setuptools_bzr-2.1/egg-dist-tmp-Tu2Nrz
Traceback (most recent call last):
  File "bin/easy_install", line 8, in ?
    sys.exit(
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 1883, in main
    with_ei_usage(lambda:
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 1864, in with_ei_usage
    return f()
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 1887, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/Users/mauritsvanrees/buildout/python/parts/opt/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 349, in run
    self.easy_install(spec, not self.no_deps)
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 589, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 619, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 809, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 1086, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/command/easy_install.py", line 1075, in run_setup
    run_setup(setup_script, args)
  File "/Users/mauritsvanrees/envs/py24/lib/python2.4/site-packages/distribute-0.6.24-py2.4.egg/setuptools/sandbox.py", line 29, in run_setup
...

Read more...

Revision history for this message
Barry Warsaw (barry) wrote :

Sadly, I don't use this module anymore so I'm disinclined to continue supporting it. I would be happy to review patches though, or better yet, hand the module off to someone who does want to continue supporting it.

Revision history for this message
Richard Gomes (frgomes) wrote :

try this:

$ python setup.py sdist --formats=gztar,zip

see: http://docs.python.org/2/distutils/sourcedist.html

Changed in setuptoolsbzr:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.