duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] success: parallel install of different versions


From: edgar . soldin
Subject: Re: [Duplicity-talk] success: parallel install of different versions
Date: Thu, 18 Sep 2008 10:35:52 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0

How can I convince the install routine to put the binaries/executables in a path of my choice without creating a /bin subfolder?
The why & current status are below.

Also I'd like to have all duplicity files in one folder (I don't see the
need to separate them in a local installation). Any ideas or knowledge
how achieve this? I would specify the required path on install
(--install[-libs|-scripts etc.]), or is there a better way to do it? I
will try the switches, but maybe someone knows them instantly from the
mind and can tell them?

You will have only duplicity and its sub-directories.  Duplicity
requires the directory structure in order to find its modules.  Short of
editing every source file, it would not be possible to make it work with
only one directory level.

by :~> python setup.py install --prefix=~/_apps/duplicity-0.5.01 --install-lib=~/_apps/duplicity-0.5.01

I end up with a as flat as it gets folder structure:
----
:~> ls  ~/_apps/duplicity-0.5.01/*
/srv/www/jamoke.net//_apps/duplicity-0.5.01/duplicity-0.5.01-py2.5.egg-info

/srv/www/jamoke.net//_apps/duplicity-0.5.01/bin:
duplicity  rdiffdir

/srv/www/jamoke.net//_apps/duplicity-0.5.01/duplicity:
... [SNIP]

/srv/www/jamoke.net//_apps/duplicity-0.5.01/share:
doc  man
----

The sys.path entry now to add to the duplicity script is the same as prefix, as the libs are under $prefix/duplicity. I could install them under /bin (--install-lib=~/_apps/duplicity-0.5.01/bin) to obsolete the need to edit PYTHONPATH.

But I'd rather like to put the executables not in a bin folder, but directly in $prefix.
Has anybody an idea how to convince the install routine to do so?

regards ede

--
public class WhoDidIt{ // A comment. I love comments private static Person sender;

 public static void main (String[] foo){

 sender = new Person();
 sender.setName(new String[]{"Edgar", "Soldin"});

 Address address = new Address();
 address.setStreet("Stadtweg 119");
 address.setZip(39116);
 address.setCity("Magdeburg");
 address.setCountry("Germany");

 sender.setAddress(address);

 sender.setMobilePhone(" +49(0)171-2782880 ");
 sender.setWebSiteUrl(" http://www.soldin.de ");
 sender.setEmail(" address@hidden ");
 sender.setPGPPublicKey(" http://www.soldin.de/edgar_soldin.asc ");
 sender.setGender(true);

 System.out.println(sender.toString());
 }
}





reply via email to

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