Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Directory Structure for Distutils

Reply
Thread Tools

Directory Structure for Distutils

 
 
Thomas =?ISO-8859-15?Q?G=FCttler?=
Guest
Posts: n/a
 
      07-21-2003
Hi!

What is the best directory structure for python modules?

I want to install a script called pyla into /usr/bin/pyla

The script pyla imports several methods and classes from a
module called pyla.

Up to would like to do it like this

pyla/
pyla/setup.py
pyla/dist (created by distutils)
pyla/pyla/__init__.py # This should be in site-packages/pyla
pyla/pyla/foo.py
pyla/pyla # Script for /usr/bin cannot be called like this
# because directory pyla exists.

Would be nice if there was a "prefered" directory strucuture
in the documentation of distutils. This should include
doc/, man/, etc/, ...

What does your directory strutures look like?

thomas

 
Reply With Quote
 
 
 
 
Thomas =?ISO-8859-15?Q?G=FCttler?=
Guest
Posts: n/a
 
      07-21-2003
Thomas GŁttler wrote:

> Hi!
>
> What is the best directory structure for python modules?
>
> ...


(Replying to myself)

I downloaded the source of distutils and took it as an example.

One thing is still unclear:
How can I copy non python files into the destination?
There is a directory called "gif" which needs to be in the
directory of the my module.


thomas


 
Reply With Quote
 
 
 
 
Peter Klyushkin
Guest
Posts: n/a
 
      07-21-2003
Hello, Thomas!

>>>>> "TG" == Thomas G√ľttler writes:


TG> Thomas G√ľttler wrote:
>> Hi!
>>
>> What is the best directory structure for python modules?
>>
>> ...


TG> (Replying to myself)

TG> I downloaded the source of distutils and took it as an example.

TG> One thing is still unclear: How can I copy non python files into
TG> the destination? There is a directory called "gif" which needs
TG> to be in the directory of the my module.

Take a look at ResourcePackage. It isn't exactly what you want but it
is exactly for your purpose.

TG> thomas

--
C'ya, Peter.
--=[(E-Mail Removed)]=--
--=[ICQ 89449080]=--=[Jabber http://www.velocityreviews.com/forums/(E-Mail Removed)]=--
 
Reply With Quote
 
Thomas =?ISO-8859-15?Q?G=FCttler?=
Guest
Posts: n/a
 
      07-21-2003
Peter Klyushkin wrote:

> Hello, Thomas!
>
>>>>>> "TG" == Thomas GŁttler writes:

>
> TG> Thomas GŁttler wrote:
>>> Hi!
>>>
>>> What is the best directory structure for python modules?
>>>

> TG> One thing is still unclear: How can I copy non python files into
> TG> the destination? There is a directory called "gif" which needs
> TG> to be in the directory of the my module.
>
> Take a look at ResourcePackage. It isn't exactly what you want but it
> is exactly for your purpose.


Hi Peter,

Thank you for this link, but I don't want the images to become
python source.

Still looking for a solution ...

thomas


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
distutils, No module named numpy.distutils.fcompiler.conv_template Luis Alberto Zarrabeitia Gomez Python 0 03-30-2009 03:56 PM
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
Directory structure of home directory? john HTML 4 06-15-2006 06:50 PM
can distutils windows installer invoke another distutils windows installer timw.google Python 1 05-11-2006 10:07 PM
Distutils directory questions Edward K. Ream Python 1 06-28-2003 04:02 PM



Advertisments