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',
au******************@gmx.net',
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 1 1046
On May 18, 3:31*pm, Martin Manns <mma...@gmx.netwrote:
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='mma...@gmx.net',
* * * 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Johan Svedberg |
last post by:
Hi!
I just started playing around with Distutils and there is one thing I
could use some help with. I'm wondering if there is some convenient way
to access the directories where the data_files...
|
by: Terry Hancock |
last post by:
Some time ago, I got the idea that I wanted to build image
resources from vector graphic originals, instead of
marshalling hundreds of tiny little icon images by hand.
I wrote "BuildImage" to do...
|
by: Steven Bethard |
last post by:
How do I get distutils to include my testing module in just the "sdist"
distribution? My current call to setup() looks like::
distutils.core.setup(
...
py_modules=,
)
If change this to::
|
by: billiejoex |
last post by:
Hi there,
I'm having problems with creating an installer for a module of mine by
using distutils. I'll try to explain my problem as clear as I can
(sorry but English is not my first language)....
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM).
In this month's session, the creator of the excellent VBE...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: Aftab Ahmad |
last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below.
Dim IE As Object
Set IE =...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: marcoviolo |
last post by:
Dear all,
I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
| |