473,699 Members | 2,518 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

setup.py installation and module search path

When I run setup.py to install a pure python package, is it supposed
to
automatically set my search path to find the installed modules? Or am
I
supposed to set my PYTHONPATH variable myself in my .bashrc file?

And what if I don't have root priviledge? Then what is supposed to
happen? Can anyone give me a clue? Thanks.

Feb 20 '07 #1
3 1332
Russ wrote:
When I run setup.py to install a pure python package, is it supposed
to
automatically set my search path to find the installed modules? Or am
I
supposed to set my PYTHONPATH variable myself in my .bashrc file?

And what if I don't have root priviledge? Then what is supposed to
happen? Can anyone give me a clue? Thanks.
I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/<moduleand if it
installs __init__.py file there they get automatically searched.
At least that the way things work for me.

-Larry
Feb 20 '07 #2

Larry Bates wrote:
I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/<moduleand if it
installs __init__.py file there they get automatically searched.
At least that the way things work for me.
But if I don't have root priviledge, that doesn't happen. Is there a
setup.py option to get a
package installed just in my own account in such a way that my module
search path gets
updated?

Feb 21 '07 #3
En Tue, 20 Feb 2007 20:56:13 -0300, Russ <uy*******@snea kemail.com>
escribió:
>I'm no expert, but I think what normally happens is the module gets
installed into ../pythonxx/lib/site-packages/<moduleand if it
installs __init__.py file there they get automatically searched.
At least that the way things work for me.

But if I don't have root priviledge, that doesn't happen. Is there a
setup.py option to get a
package installed just in my own account in such a way that my module
search path gets
updated?
Use the --home option (or --prefix). You may need to set the PYTHONPATH
environment variable to ~/lib/python

--
Gabriel Genellina

Feb 21 '07 #4

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

Similar topics

1
2869
by: Holger Joukl | last post by:
Hi there, 2 questions regarding build/installation issues: 1. In the python 2.3.3 setup.py script, the detect_modules method of class PyBuildExt contains the following code: 253 if os.path.normpath(sys.prefix) != '/usr': 254 add_dir_to_list(self.compiler.library_dirs, 255 sysconfig.get_config_var("LIBDIR")) 256 add_dir_to_list(self.compiler.include_dirs,
3
2106
by: Ryno Rijnsburger | last post by:
I am busy packaging our product as a standard Setup project in VS.NET that uses a bunch of merge modules (basically, a merge module for every key infrastructure component in our system). Part of the installation needs to "dump" a bunch of files (third party product's project files) to the user's system. These files are transient in nature in that the user may choose
2
3620
by: serge calderara | last post by:
Dear all, I have build a setup project for my VB.NET application, I need to know the installation path of an application in order to add file in it. How can do that inside my setup project ? Any sample would help regards serge
2
5355
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically works. Now, I am wondering if there is any way to change the directory that the installer installs the files to. I want to be able to put my files in a specified directory (user specified is good, but i don't mind hardcoding the path either) and...
1
1796
by: Gianmaria | last post by:
Hi, i'm workin on a deployment project... i added two custom screen to make some tasks. 1) I need that user insert a serial number for my setup.. next i check the validity of this serial by a function that returns true if the serial is valid.. or false if not. Next i want my user interface to stop installation while the seial is not a valid one. Now, i know how to pass the string of the serial to my funtion but i dont know how to stop...
2
2241
by: joerozario | last post by:
I have created a windows application. Like windows search program. So I want my project link should be shown in folder right click. I have added values in the registry manually in I have got as I need. This is the Registry Script Windows Registry Editor Version 5.00 @="Project path "
0
1337
slashcanadian
by: slashcanadian | last post by:
Hallo, I have some question about creating and editing some setup wizard in .net. I want to create some "custom installation" in my setup wizard. Can someone help me how to create the custom installation. I've already work with .dll input in setup wizard. My question is, Can we jump into the form that we dont want to use? example is, In my setup wizard there is a installation database. If the user already have the database, it will choose...
6
1840
by: dhaval321 | last post by:
Actually when i m creating setup of my application, i have defined default setup path by declaring productname and manufacturer property...but suppose the version of my application changes then new application should be installed at the previously default path...so default path should be which user has installed application....to overcome this problem i have set one environment variable of this path..and during next installation i m fetcing this...
0
1252
by: fscharff | last post by:
I'm having difficulties with a setup-project for a VS-2003 application. The setup is used for both a new installation as an update installation. When the user performs an update, a specific files should never be overwritten (this file holds some user information). On the other hand, when the setup is a first time install, the file must be installed in the . So, on the Launch Condition screen, I created a File Search, checking if the...
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8613
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8908
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7745
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4374
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.