distutils directory problem

Discussion in 'Python' started by Martin Manns, May 18, 2008.

  1. Martin Manns

    Martin Manns Guest

    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='',
    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
     
    Martin Manns, May 18, 2008
    #1
    1. Advertising

  2. On May 18, 3:31 pm, Martin Manns <> wrote:
    > 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='',
    >       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
     
    Mike Driscoll, May 19, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Edward K. Ream

    Distutils directory questions

    Edward K. Ream, Jun 28, 2003, in forum: Python
    Replies:
    1
    Views:
    775
    Edward K. Ream
    Jun 28, 2003
  2. Thomas =?ISO-8859-15?Q?G=FCttler?=

    Directory Structure for Distutils

    Thomas =?ISO-8859-15?Q?G=FCttler?=, Jul 21, 2003, in forum: Python
    Replies:
    3
    Views:
    418
    Thomas =?ISO-8859-15?Q?G=FCttler?=
    Jul 21, 2003
  3. Bengt Richter
    Replies:
    1
    Views:
    336
    =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=
    Oct 28, 2004
  4. timw.google
    Replies:
    1
    Views:
    563
    Serge Orlov
    May 11, 2006
  5. Luis Alberto Zarrabeitia Gomez

    distutils, No module named numpy.distutils.fcompiler.conv_template

    Luis Alberto Zarrabeitia Gomez, Mar 30, 2009, in forum: Python
    Replies:
    0
    Views:
    1,365
    Luis Alberto Zarrabeitia Gomez
    Mar 30, 2009
Loading...

Share This Page