Inside the main package, you probably have __init__.py , right?
Directory structure:
> ./packageTest > ./packageTest/__init__.py > ./packageTest/setup.py
Inside the __init__.py file, add the following line:
setup.py file:
Now in any module that imports from the package directory (I will call packageTest), you can do this:
from packageTest import setup print 'Setup.py version:', setup.__version__
source share