For my Python project, I keep my source code in the directory src. Thus, for my project's setup.py script:
from setuptools import setup setup(name='pyIAST', ... package_dir={'':'src'}, packages=['']) so that it looks for src/IAST.py, where my code resides. e.g. there is a function plot_isotherms() in my IAST.py script so the user can, after installation, call it:
import IAST IAST.plot_isotherms() Everything works great, but there is an annoying warning when I python setup.py install or use pip install pyIAST from PyPi:
WARNING: '' not a valid package name; please use only.-separated package names in setup.py How do I make this go away?
My project is here. I'm also a bit confused as to why I name my package pyIAST, yet the user still types import IAST for my package to import.
''is a valid package. I guess the setuptools extention breaks this though. docs.python.org/2/distutils/…