473,385 Members | 2,274 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,385 software developers and data experts.

tools to install not in python tree?

Hello,

I have some materials for a project that I am working on that I keep
in a source code control system (svn now, but I'm experimenting with
mercurial). I want to install these things from the repository, but
not into site-packages/ as Distutils wants to do.

For instance there are some administrative scripts I want to put in ~/
admin/ and some programs that I want in ~/public_html/ . I also
want to run some post-install routines (for instance, reset the
database tables on my development machine). So I'm looking for a tool
to take things from a repository and install them into place.
Something like:
install_from_repository.py -version "1.2.7"
if there is a bug in 1.2.7 that I need to work on.

Some of the things that I am looking for are like what setup.py does
(for instance, changing the #! line on scripts or having a
convenient .cfg file). But as I understand it setup only targets
installing below sys.prefix; is that right?

I can write routines for myself but other people must need to do these
things also and a tested solution is obviously better. Is there such
a tool?

Thanks for any help,
Jim
Mar 4 '08 #1
3 1637
Hello Jim,
I have some materials for a project that I am working on that I keep
in a source code control system (svn now, but I'm experimenting with
mercurial). *I want to install these things from the repository, but
not into site-packages/ as Distutils wants to do.

For instance there are some administrative scripts I want to put in ~/
admin/ *and some programs that I want in ~/public_html/ . * I also
want to run some post-install routines (for instance, reset the
database tables on my development machine). *So I'm looking for a tool
to take things from a repository and install them into place.
Something like:
* install_from_repository.py -version "1.2.7"
if there is a bug in 1.2.7 that I need to work on.

Some of the things that I am looking for are like what setup.py does
(for instance, changing the #! line on scripts or having a
convenient .cfg file). *But as I understand it setup only targets
installing below sys.prefix; is that right?

I can write routines for myself but other people must need to do these
things also and a tested solution is obviously better. *Is there such
a tool?
Have a look at http://docs.python.org/lib/module-distutils.html,
specially http://docs.python.org/dist/node13.html and
http://docs.python.org/inst/alt-install-windows.html

HTH,
--
Miki <mi*********@gmail.com>
http://pythonwise.blogspot.com
Mar 4 '08 #2
co*************@hotmail.com wrote:
Hello,

I have some materials for a project that I am working on that I keep
in a source code control system (svn now, but I'm experimenting with
mercurial). I want to install these things from the repository, but
not into site-packages/ as Distutils wants to do.

For instance there are some administrative scripts I want to put in ~/
admin/ and some programs that I want in ~/public_html/ . I also
want to run some post-install routines (for instance, reset the
database tables on my development machine). So I'm looking for a tool
to take things from a repository and install them into place.
Something like:
install_from_repository.py -version "1.2.7"
if there is a bug in 1.2.7 that I need to work on.

Some of the things that I am looking for are like what setup.py does
(for instance, changing the #! line on scripts or having a
convenient .cfg file). But as I understand it setup only targets
installing below sys.prefix; is that right?
You can use setuptools. And it will install to any path available on
sys.path. So if you define PYTHONPATH pointing to some folder, you can use
setuptools to install the code (eggs) as well as create script
entry-points, so if the same path is part of PATH they will become
available on the command line.

Diez
Mar 4 '08 #3
Thank you for the helpful replies. I shall check out the links. (I
looked at some setup.py's but mxBase was not among them.)

Regards,
Jim
Mar 4 '08 #4

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

Similar topics

10
by: Conrad | last post by:
Greetings, I have a need to print from Win98SE to a little serial label printer provided by United Parcel, so based on Mark Hammond's recommendation in 'Programming on Win32' I decided to try...
5
by: Logan | last post by:
I have two different Python versions on my Linux system (2.2 and 2.3). I cannot remove version 2.2 because many configuration files of the system depend on this version of Python (and its...
35
by: Michael Kearns | last post by:
I've been using python to write a simple 'launcher' for one of our Java applications for quite a while now. I recently updated it to use python 2.4, and all seemed well. Today, one of my...
1
by: jmalone | last post by:
I have a python script that I need to freeze on AIX 5.1 (customer has AIX and does not want to install Python). The python script is pretty simple (the only things it imports are sys and socket)....
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.