473,388 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

how to specify path to .py modules during install...

Hi folks,

On i686 Linux, I would like to place my python modules as:
<base_dir>/src/py-modules/*.py
and use the cmd from <base_dire>:
...base_dir]$ python src/py-modules/setup.py install
--prefix=<base_dir>/usr
so the .py files and the corresponding compiled .pyc files are at:
<base_dir>/usr/lib/python2.4/site-packacges/*.py[c]

Its unclear from the documentation, how I could specify the
location of the *.py files, ie:
<base_dir>/src/py-modules/
in the installation command:
...base_dir]$ python src/py-modules/setup.py install
--prefix=<base_dir>/usr

I can specify the destination of the module/compiled files,
but how do I specify the the path to the .py files. I get the
"file not found error".

Of course, if I cd to:
<base_dir>/src/py-modules/
and run the command, its able to find all the modules listed
in setup.py:py_modules[.....] entry.

This is one among many other modules (C/py) being built
while at the <base_dir>...

Thanks,
/venkat

Sep 15 '06 #1
0 1223

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: huzhenghui37 | last post by:
with my experience when i install the wxPython the installer put all things in the python\Lib\site-packages\ and from the source code "import wxpthon.wx" i know how import the modules when i...
9
by: Bengt dePaulis | last post by:
I have a local directory that I want to include in my sys.path How to save it permanently? Regards /Bengt
2
by: Andrew Wiles | last post by:
Hi I have created an installation package in VS .Net. All works well if I use the default installation path. If however I change the Installation path the following message is shown. "A...
17
by: chris.atlee | last post by:
Hi there, I haven't seen this topic pop up in a while, so I thought I'd raise it again... What is the status of the path module/class PEP? Did somebody start writing one, or did it die? I...
5
by: johnmeola | last post by:
Any assistance is appreciated. I would like to know if there is a way to specify the path for database log files to be located during the SQL2005 Standard installation. Under the Advanced button...
17
by: mohan | last post by:
Hi Guys, I've been using the following IDE, "Pythonwin - Python IDE and GUI Framework for Windows. Copyright 1994-2001 Mark Hammond " With respect to my work, I had created my own modules...
34
by: Ben Sizer | last post by:
I've installed several different versions of Python across several different versions of MS Windows, and not a single time was the Python directory or the Scripts subdirectory added to the PATH...
4
by: andrea | last post by:
Hi everyone, I use python on macosx with textmate as editor (great program). I also use macport to install unix programs from the command line and I find it great too. Well I would like to have...
4
by: aine_canby | last post by:
Hi, Do the Python Paths come in the form of a dictionary where I can access a particular path my its key in the registry? For example, in PythonWin Tools>>Edit Python Paths shows the name as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.