gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnumed-devel] first crack at distutils setup.py


From: David Grant
Subject: [Gnumed-devel] first crack at distutils setup.py
Date: Sat, 21 Feb 2004 02:22:43 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.6) Gecko/20040207

I've added a setup.py and MANIFEST.in file which uses distutils to do two things (which are built-in distutils behaviour):

1. Create a tarball for distribution (this is for developers to make releases) 2. Install gnumed into a users system, by specifying a prefix like /usr and a root like / or /builds/test/gnumed/image (end users and/or packagers)

Run:
python setup.py sdist
to create the tarball in a directory called dist by default

You can go into ./dist and try it out:
tar zxvf Gnumed-0.1.tar.gz
python setup.py install --prefix /usr --root ./image


There are some other things distutils can do, like create a windows executable installer, or create an RPM automatically. More to come. Hack away.

David

--
David J. Grant
M.A.Sc. Candidate in Electrical Engineering
a-Si and Integrated Circuits Lab
University of Waterloo
Room DC3707
519-888-4567 x2872
http://www.eng.uwaterloo.ca/~djgrant






reply via email to

[Prev in Thread] Current Thread [Next in Thread]