using distutils to install a python module

Reply

Join Date: May 2005
Posts: 215
Reputation: shanenin is an unknown quantity at this point 
Solved Threads: 16
shanenin shanenin is offline Offline
Posting Whiz in Training

using distutils to install a python module

 
0
  #1
Nov 29th, 2005
I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use
  1. #!/usr/bin/env python
  2. from distutils.core import setup
  3.  
  4. setup(name="freevo_cropit",
  5. version="0.1",
  6. description="A Freevo plugin for wirting mplayer config files",
  7. author="me",
  8. author_email="shane@test.com",
  9. url="http://test.com",
  10. py_modules=['cropit.py'])

I have the cropit.py module in the same directoy as my setup.py script. I need to install the cropit.py module to this directory
  1. /usr/lib/python2.4/site-packages/freevo/video/plugins/

how do I specify that in my setup.py?
In a perfect world exceptions would not be needed.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 215
Reputation: shanenin is an unknown quantity at this point 
Solved Threads: 16
shanenin shanenin is offline Offline
Posting Whiz in Training

Re: using distutils to install a python module

 
0
  #2
Nov 29th, 2005
AFter rereading my post, I am not sure if it is clear. All I want to do is use distutils to create an installer for both one python module, and one python script.

I need the python module installed to the directory
  1. /usr/lib/python2.4/site-packages/freevo/video/plugins

and my python script installed to
  1. /usr/bin
In a perfect world exceptions would not be needed.
Reply With Quote Quick reply to this message  
Join Date: May 2005
Posts: 215
Reputation: shanenin is an unknown quantity at this point 
Solved Threads: 16
shanenin shanenin is offline Offline
Posting Whiz in Training

Re: using distutils to install a python module

 
0
  #3
Nov 29th, 2005
the problem was I was needed to use this
  1. py_modules=['freevo.video.plugins.cropit'])
not
  1. py_modules=['freevo.video.plugins.cropit.py'])
In a perfect world exceptions would not be needed.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC