Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old December 21st, 2003, 11:54 AM
filerba filerba is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Oregon
Posts: 2 filerba User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
distutils target

I'm using distutils and I don't know how to discover what directory my package will be installed to. I put a subdirectory of icons in my package directory. Maybe that's not the best place, but it keeps clutter down and makes it very easy for my program to find.

Right now I'm using this:
os.path.join("lib", "python" + sys.version[:3], "site-packages", 'PKG-NAME','icons')
which works on a standard install.
But if you try to install using --home=~ the package is installed in ~/lib/python/... while the icons are installed in ~/lib/python2.2/site-packages.....

I could try parsing the arguments to setup.py, but that would be a lot of work, and require more understanding of distutils than I am likely to get from the documentation. Besides, it would have no chance of being compatible with futurre versions of distutils. It seems like distutils should have a function or variable to tell me this, if only I knew what it was...

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > distutils target


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway