[Distutils] error using easy_install

Ethan Furman ethan at stoneleaf.us
Sat Jun 15 08:29:55 CEST 2013


My setup.py:

-- 8< --------------------------------------------------------------
from distutils.core import setup

long_desc = open('enum.rst').read()

setup( name='stoneleaf.enum',
        version='1.0.1',
        url='https://pypi.python.org/pypi/stoneleaf.enum',
        packages=['enum'],
        package_dir={'enum':''},
        package_data={'enum':['enum.rst', 'enum.pdf', 'test/test_enum.py',
                      'test/py2_test_enum.py', 'test/py3_test_enum.py']},
        license='BSD License',
        description='Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4',
        long_description=long_desc,
        provides=['enum'],
        author='Ethan Furman',
        author_email='ethan at stoneleaf.us',
        classifiers=[
             'Development Status :: 5 - Production/Stable',
             'Intended Audience :: Developers',
             'License :: OSI Approved :: BSD License',
             'Programming Language :: Python',
             'Topic :: Software Development' ],
      )
-- 8< --------------------------------------------------------------

Error trying to install it with easy_install after uploading it to PyPI:

ethan at hydra:~$ sudo easy_install stoneleaf.enum
Searching for stoneleaf.enum
Reading http://pypi.python.org/simple/stoneleaf.enum/
Best match: stoneleaf.enum 1.0.1
Downloading 
http://pypi.python.org/packages/source/s/stoneleaf.enum/stoneleaf.enum-1.0.1.zip#md5=c41abd7ad04f11e8b545cfca7758a4f2
Processing stoneleaf.enum-1.0.1.zip
Writing /tmp/easy_install-LY_zzX/stoneleaf.enum-1.0.1/setup.cfg
Running stoneleaf.enum-1.0.1/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-LY_zzX/stoneleaf.enum-1.0.1/egg-dist-tmp-IpvhLD
error: Setup script exited with error: can't copy 'num.rst': doesn't exist or not a regular file


There is no 'num.rst' file in the package -- it should be 'enum.rst'.

Any ideas?  Is this the right place to post?

--
~Ethan~


More information about the Distutils-SIG mailing list