[Distutils] 'Invalid module name' creating package with setuptools

Alex Grönholm alex.gronholm at nextday.fi
Thu Apr 14 11:32:28 EDT 2016


That setup.py worked fine here, so I'm guessing this is not the actual 
setup.py you're running. What is the exact value of the "name" argument 
in your real setup.py?

BTW, source encoding is utf-8 by default on Python 3 so the "# 
coding=utf8" is unnecessary.

14.04.2016, 18:28, Luí­s de Sousa via Distutils-SIG kirjoitti:
> Hi everyone,
>
> I have a project with these contents:
>
> proj
> ├── proj
> │   ├── scriptA.py
> │   ├── scriptB.py
> │   └── __init__.py
> ├── LICENCE
> ├── README.md
> └── setup.py
>
> The setup.py file looks like:
>
> #!/usr/bin/python3
> # coding=utf8
>
> from setuptools import setup
>
> setup(
>     name = "proj",
>     version = "0.2",
>     packages = ['proj'],
>     install_requires=[],
>     entry_points={
>         'console_scripts': [
>             'scriptA=proj:scriptA',
>             'scriptB=proj:scriptB'
>         ],
>     },
>
>     # metadata for upload to PyPI
>     author = "Luís",
>     author_email = "luis at mail.com <mailto:luis at mail.com>",
>     description = "Some package",
>     license = "EUPL v1.1",
>     keywords = "pip package",
>     url = "https://some.place.com",   # project home page, if any
>     classifiers = [
>         "Programming Language :: Python",
>         "Programming Language :: Python :: 3",
>         "Development Status :: 4 - Beta",
>         "Environment :: Console",
>         "Intended Audience :: Science/Research",
>         "License :: OSI Approved :: European Union Public Licence 1.1 
> (EUPL 1.1)",
>         "Operating System :: OS Independent",
>         "Topic :: Scientific/Engineering :: GIS"
>         ],
> )
>
> When I try to build I get the following error:
>
> $ python setup.py bdist_wheel --universal
> error in proj setup command: ('Invalid module name', 'proj')
>
> What am I doing wrong? Thank you,
>
> Luís
>
> /Sent from ProtonMail <https://protonmail.ch>, encrypted email based 
> in Switzerland./
>
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20160414/b4a180ec/attachment.html>


More information about the Distutils-SIG mailing list