944,092 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 4926
  • Python RSS
Nov 29th, 2005
0

using distutils to install a python module

Expand Post »
I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use
Python Syntax (Toggle Plain Text)
  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
Python Syntax (Toggle Plain Text)
  1. /usr/lib/python2.4/site-packages/freevo/video/plugins/

how do I specify that in my setup.py?
Similar Threads
Reputation Points: 10
Solved Threads: 17
Posting Whiz in Training
shanenin is offline Offline
217 posts
since May 2005
Nov 29th, 2005
0

Re: using distutils to install a python module

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
Python Syntax (Toggle Plain Text)
  1. /usr/lib/python2.4/site-packages/freevo/video/plugins

and my python script installed to
Python Syntax (Toggle Plain Text)
  1. /usr/bin
Reputation Points: 10
Solved Threads: 17
Posting Whiz in Training
shanenin is offline Offline
217 posts
since May 2005
Nov 29th, 2005
0

Re: using distutils to install a python module

the problem was I was needed to use this
Python Syntax (Toggle Plain Text)
  1. py_modules=['freevo.video.plugins.cropit'])
not
Python Syntax (Toggle Plain Text)
  1. py_modules=['freevo.video.plugins.cropit.py'])
Reputation Points: 10
Solved Threads: 17
Posting Whiz in Training
shanenin is offline Offline
217 posts
since May 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Tkinter exception
Next Thread in Python Forum Timeline: JOB: Telecommute Python Programmer - IMMEDIATE NEED





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC