2016-04-13 20 views
2

Bunları içeriği ile bir proje var. setup.py dosya gibi görünür:'Geçersiz modül adı' setuptools ile yaratma paketi

#!/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 = "[email protected]", 
    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" 
     ], 


    # could also include long_description, download_url, classifiers, etc. 
) 

ben aşağıdaki hatayı alıyorum inşa etmeye çalışın:

$ python setup.py bdist_wheel --universal 
error in proj setup command: ('Invalid module name', 'proj') 

yanlış yapıyorum?

cevap

0

inşa doğrudan python3 çağırmak durumunda başarılıdır:

$ python3 setup.py bdist_wheel --universal setup.py yılında shebang nedense göz ardı ediliyor

. Bununla birlikte, ortaya çıkan fails to run after being installed paketine bakınız.