distutils not finding all of my pure python modules

J

Jeremy

I have a small set of Python packages/modules that I am putting
together. I'm having trouble in that when I run

python setup.py sdist

I don't get all of my pure python modules. The setup.py script I use
is:

# =====================================
from distutils.core import setup

purePythonModules = ['regex', 'gnuFile']

setup(name='PythonForSafeguards',
version='0.9.1',
description = 'Python code for MCNP and Safeguards analysis.',
author = 'Jake the Snake',
author_email = '(e-mail address removed)',
packages = ['MCNP', 'Safeguards'],
url='http://lanl.gov',
py_modules = purePythonModules,
)

# =========================================

Everythin seems to work fine except the gnuFile.py script does not get
put into the distribution. I know the file exists in the same
directory as regex.py and has the same permissions.

Does anyone know what is going on here? I'm using Python 2.6.4.

Thanks,
Jeremy
 
G

Gabriel Genellina

from distutils.core import setup

purePythonModules = ['regex', 'gnuFile']

setup(name='PythonForSafeguards',
version='0.9.1',
description = 'Python code for MCNP and Safeguards analysis.',
author = 'Jake the Snake',
author_email = '(e-mail address removed)',
packages = ['MCNP', 'Safeguards'],
url='http://lanl.gov',
py_modules = purePythonModules,
)

# =========================================

Everythin seems to work fine except the gnuFile.py script does not get
put into the distribution. I know the file exists in the same
directory as regex.py and has the same permissions.

regex.py and gnuFile.py must be in the same directory as setup.py, ok?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,084
Latest member
HansGeorgi

Latest Threads

Top