distutils directory problem

M

Martin Manns

Hi,

I have the following problem with the distutils package:
(I have now spent hours reading and searching the manuals and tutorials,
and I am still stuck.)

I have a working directory
~/pyspread
in which my libraries are situated and two icons directories
~/pyspread/icons and ~/pyspread/icons/actions

Now I would like to create a setup.py file inside my ~/pyspread
directory that installs my .py modules in .../site-packages/pyspread
and the icons in appropriate sub-folders and adds pyspread.pth to
..../site-packages so that .../site-packages/pyspread is in the
PYTHONPATH.

However, my setup.py puts everything (including .pyc files) into
site-packages *and* into the sub-folders. What am I doing wrong?

I am looking for a platform-independent solution. Currently, I am using
python 2.5 on Linux.

Here my setup.py

#!/usr/bin/env python

from distutils.core import setup
setup(name='pyspread',
version='0.0.7',
description='A spreadsheet that accepts a pure python expression in each cell.',
license='GPL v3 :: GNU General Public License',
classifiers=[ 'Development Status :: 3 - Alpha',
'Intended Audience :: End Users/Desktop',
],
author='Martin Manns',
author_email='(e-mail address removed)',
url='http://sourceforge.net/projects/pyspread/',
packages=['pyspread'],
package_dir={'pyspread': '.'},
scripts=['pyspread.py'],
py_modules=['pyspread.mainapp', 'pyspread.pysgrid', 'pyspread.mygrid','pyspread.icontheme'],
package_data={'pyspread': ['icons/*.png', 'icons/actions/*.png' ,\
'test.pys', 'test.csv', 'test2.csv', \
'README', 'COPYING']},
)


Thanks in advance

Martin
 
M

Mike Driscoll

Hi,

I have the following problem with the distutils package:
(I have now spent hours reading and searching the manuals and tutorials,
and I am still stuck.)

I have a working directory
~/pyspread
in which my libraries are situated and two icons directories
~/pyspread/icons and ~/pyspread/icons/actions

Now I would like to create a setup.py file inside my ~/pyspread
directory that installs my .py modules in .../site-packages/pyspread
and the icons in appropriate sub-folders and adds pyspread.pth to
.../site-packages so that .../site-packages/pyspread is in the
PYTHONPATH.

However, my setup.py puts everything  (including .pyc files) into
site-packages *and* into the sub-folders. What am I doing wrong?

I am looking for a platform-independent solution. Currently, I am using
python 2.5 on Linux.

Here my setup.py

#!/usr/bin/env python

from distutils.core import setup
setup(name='pyspread',
      version='0.0.7',
      description='A spreadsheet that accepts a pure python expression in each cell.',
      license='GPL v3 :: GNU General Public License',
      classifiers=[ 'Development Status :: 3 - Alpha',
                    'Intended Audience :: End Users/Desktop',
      ],
      author='Martin Manns',
      author_email='(e-mail address removed)',
      url='http://sourceforge.net/projects/pyspread/',
      packages=['pyspread'],
      package_dir={'pyspread': '.'},
      scripts=['pyspread.py'],
      py_modules=['pyspread.mainapp', 'pyspread.pysgrid', 'pyspread.mygrid','pyspread.icontheme'],
      package_data={'pyspread': ['icons/*.png', 'icons/actions/*.png' ,\
                                 'test.pys', 'test.csv', 'test2.csv', \
                                 'README', 'COPYING']},
)

Thanks in advance

Martin

I highly recommend re-posting this to the distutils group. They have
some excellent people over there that can probably tell you quite
quickly what the issue is:

http://mail.python.org/mailman/listinfo/distutils-sig

Mike
 

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,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top