| | |
using distutils to install a python module
![]() |
•
•
Join Date: May 2005
Posts: 215
Reputation:
Solved Threads: 16
I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use
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
how do I specify that in my setup.py?
Python Syntax (Toggle Plain Text)
#!/usr/bin/env python from distutils.core import setup setup(name="freevo_cropit", version="0.1", description="A Freevo plugin for wirting mplayer config files", author="me", author_email="shane@test.com", url="http://test.com", 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)
/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.
•
•
Join Date: May 2005
Posts: 215
Reputation:
Solved Threads: 16
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
and my python script installed to
I need the python module installed to the directory
Python Syntax (Toggle Plain Text)
/usr/lib/python2.4/site-packages/freevo/video/plugins
and my python script installed to
Python Syntax (Toggle Plain Text)
/usr/bin
In a perfect world exceptions would not be needed.
•
•
Join Date: May 2005
Posts: 215
Reputation:
Solved Threads: 16
the problem was I was needed to use this
not
Python Syntax (Toggle Plain Text)
py_modules=['freevo.video.plugins.cropit'])
Python Syntax (Toggle Plain Text)
py_modules=['freevo.video.plugins.cropit.py'])
In a perfect world exceptions would not be needed.
![]() |
Similar Threads
- Starting Python (Python)
- python and bash (Python)
- Debugging in Python (Python)
- module to get video file dimensions (Python)
- Suse linux network module? (*nix Hardware Configuration)
Other Threads in the Python Forum
- Previous Thread: Tkinter exception
- Next Thread: JOB: Telecommute Python Programmer - IMMEDIATE NEED
| Thread Tools | Search this Thread |
address advanced aliased anydbm bash beginner bits calling casino changecolor clear command conversion convert corners count csv cturtle cursor curves definedlines dictionary digital dynamic dynamically events examples excel external file float format frange function gui handling hints homework i/o iframe import input java line linux list lists loan loop matching mouse multiple number numbers obexftp output parsing path port prime programming projects py py2exe pygame python random rational raw_input recursion recursive return scrolledtext searchingfile signal singleton skinning string strings tails terminal text threading time tkinter tlapse tooltip tuple tutorial type ubuntu unicode urllib urllib2 valueerror variable web-scrape whileloop word wxpython





