473,796 Members | 2,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Distutils help for sub-packages

I need some distutils help. I currently run a python library
(PyQuante) that, until recently, had all of its modules in a single
directory, called "PyQuante". The setup command in my setup.py module
had a single "packages" line:

packages = ['PyQuante'],

I moved some of the routines into Basis and IO subdirectories of
PyQuante, and amended the packages line to be:

packages = ['PyQuante','PyQ uante.Basis','P yQuante.IO'],

Everything works find if I'm installing from SVN. However, when I
build a tarball via setup.py sdist, the Basis and IO subdirectories
are not included. How can I get the distutils to include this?

Thanks in advance,

Rick
Dec 3 '07 #1
3 1733
On Dec 3, 9:44 am, Rick Muller <rpmul...@gmail .comwrote:
I need some distutils help. I currently run a python library
(PyQuante) that, until recently, had all of its modules in a single
directory, called "PyQuante". The setup command in my setup.py module
had a single "packages" line:

packages = ['PyQuante'],

I moved some of the routines into Basis and IO subdirectories of
PyQuante, and amended the packages line to be:

packages = ['PyQuante','PyQ uante.Basis','P yQuante.IO'],

Everything works find if I'm installing from SVN. However, when I
build a tarball via setup.py sdist, the Basis and IO subdirectories
are not included. How can I get the distutils to include this?

Thanks in advance,

Rick
I recommend asking the distutils guys at their list:

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

Mike
Dec 5 '07 #2
On Dec 5, 7:20 am, kyoso...@gmail. com wrote:
>
I recommend asking the distutils guys at their list:

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

Mike
I did, and no one replied there either. Probably because everyone,
there and here, were too polite to say that I was nutso. Which, it
turns out, I was. After not hearing from two normally helpful forums
(fora?) I went back a little more carefully and found the bug. Sorry
for the false alarm.
Dec 6 '07 #3
On Dec 6, 2:37 pm, Rick Muller <rpmul...@gmail .comwrote:
On Dec 5, 7:20 am, kyoso...@gmail. com wrote:
I recommend asking the distutils guys at their list:
http://mail.python.org/mailman/listinfo/distutils-sig
Mike

I did, and no one replied there either. Probably because everyone,
there and here, were too polite to say that I was nutso. Which, it
turns out, I was. After not hearing from two normally helpful forums
(fora?) I went back a little more carefully and found the bug. Sorry
for the false alarm.
Sorry to hear that...they are both pretty helpful in most cases.
C.l.py doesn't usually mind telling OP's that they're nutso either. I
personally didn't think you were, but I didn't know how to answer your
question either.

Mike
Dec 6 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1570
by: Andrew Gregory | last post by:
In Python 2.2, I compiled some C++ code on Windows (MinGW compiler) to create an extension using distutils and the following setup.py file: from distutils.core import setup, Extension setup (name = "_pysimple", version = "1.0", maintainer = "AG", maintainer_email = "xxx@xx.co.uk", description = "Sample Python C++ DLL", ext_modules = ,
0
1217
by: A.M. Kuchling | last post by:
I want to make a Distutils 1.1 release that wraps up the version of the code that was in Python 2.3. This would be the last 1.5.2-compatible release of Distutils, giving people the chance to use the current code with versions of Python from 1.5.2 to 2.3. A future Distutils 2.0 would then drop 1.5.2 compatibility. The README and related bits have been updated, and I've made a snapshot release that can be downloaded from...
3
4982
by: Rick Muller | last post by:
I've been trying to figure out whether there are any plans to add an "uninstall" feature to the Python distutils. Googling has found several people posting the same question, but, to the best of my knowledge, no answers. Can anyone tell me whether this has been proposed before? Thanks in advance.
1
4072
by: Tristan Miller | last post by:
Greetings. I'm trying to install a Python program, rawdog, on a system running SuSE 9.0. I have Python 2.3 and the development package installed via apt4rpm, so distutils should be there. But for some reason Python thinks otherwise: port-3108:/tmp/rawdog-1.13 # python ./setup.py install Traceback (most recent call last): File "./setup.py", line 3, in ?
1
2658
by: Mathieu Malaterre | last post by:
Hello, I thought this would be easy but I guess I didn't get the distutil feeling. I am trying to write a setup for install my package but I don't understand how to do that. organisation: setup.py /bin/
15
4125
by: Colin J. Williams | last post by:
The distutils download page has: -------------------------------------------------------- Current stable release The current stable release is Distutils 1.0.2; you can download it as: * Distutils-1.0.2.tar.gz (source distribution) (233k) * Distutils-1.0.2.zip (source distribution) (274k) * Distutils-1.0.2.win32.exe (Windows installer) (187k)
6
2347
by: ajikoe | last post by:
Hello I tried to combine c++ and python together. So I follow from this website: http://kortis.to/radix/python_ext/ I have this code: # prmodule.c static PyObject *pr_isprime(PyObject *self, PyObject *args){ int n, input; if (!PyArg_ParseTuple(args, "i", &input))
8
2212
by: mg | last post by:
Hello, I try to compile Python and several packages (like Numarray) with Visual Studio 2005. I downloaded the last version of Python from Subversion, and project files are provided for Visual Studio 2005. With some few simple corrections, everything compile and Python run correctly. Unfortunately, distutils does not support VisualStudio2005. I tried to modify the file msvccompiler.py without success (this case requires to support some...
7
4294
by: vedrandekovic | last post by:
Hello again, Is there any patch for python "distutils", for this ImportError: cannot import name log Regards, Vedran
0
1466
by: newbie73 | last post by:
OS: Vista Python 2.5.2.2 (ActiveState Software Installation) Running latest Cygwin release The error generated is pasted below - please help. - Luis ***************************************
0
9527
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10453
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5573
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.