0

I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use

#!/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

/usr/lib/python2.4/site-packages/freevo/video/plugins/

how do I specify that in my setup.py?

1
Contributor
2
Replies
5
Views
11 Years
Discussion Span
Last Post by shanenin
0

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

/usr/lib/python2.4/site-packages/freevo/video/plugins

and my python script installed to

/usr/bin
0

the problem was I was needed to use this

py_modules=['freevo.video.plugins.cropit'])

not

py_modules=['freevo.video.plugins.cropit.py'])
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.