LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-29-2005, 07:10 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
using distutils to install a python module


I am trying to use distutils to install a pyhon module. below is an idea of the code I want to use
Code:
#!/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
Code:
/usr/lib/python2.4/site-packages/freevo/video/plugins/
how do I specify that in my setup.py?
 
Old 11-29-2005, 08:06 PM   #2
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
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
Code:
/usr/lib/python2.4/site-packages/freevo/video/plugins
and my python script installed to
Code:
/usr/bin
 
Old 11-29-2005, 09:44 PM   #3
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
the problem was I was needed to use this
Code:
py_modules=['freevo.video.plugins.cropit'])
not
Code:
py_modules=['freevo.video.plugins.cropit.py'])
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing python module on webserver... = p Eleaf Linux - General 11 10-23-2005 07:07 PM
no python module base.g? hcgernhardt Linux - Software 0 01-15-2005 12:16 PM
Help me (python and MySQLdb module) Dark Carnival Programming 2 04-22-2004 07:31 AM
python: import distutils fails on debian? jpbarto Linux - Software 0 01-18-2004 10:36 AM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM


All times are GMT -5. The time now is 07:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration