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?

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

the problem was I was needed to use this

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

not

py_modules=['freevo.video.plugins.cropit.py'])
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.