LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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



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
no python module base.g? hcgernhardt Linux - Software 2 04-24-2018 09:03 AM
Installing python module on webserver... = p Eleaf Linux - General 11 10-23-2005 07:07 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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:41 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration