|
From: | Kenneth Loafman |
Subject: | Re: [Duplicity-talk] #!/usr/bin/python |
Date: | Mon, 26 Oct 2015 09:08:57 -0500 |
while i am at it. should i update
if sys.version_info[:2] < (2, 6):
print("Sorry, duplicity requires version 2.6 or later of python")
sys.exit(1)
to check the upper version as well? we are not python 3 compatible for now.
..ede
On 26.10.2015 11:33, address@hidden wrote:
> because it is much easier to just prefix install python versions under /usr/local and to switch them by adjusting the PATH env var ;)
>
> anyway.. i found a way. will tox test and commit it, if it works out.
>
> ..ede/duply.net
>
> On 26.10.2015 01:40, Kenneth Loafman wrote:
>> tox and virtualenv handle the problem for you. Why reinvent?
>>
>> ...Ken
>>
>>
>> On Sun, Oct 25, 2015 at 3:07 PM, <address@hidden <mailto:address@hidden>> wrote:
>>
>> weird sh*t. actually you already have it correctly in bazaar, but setup.py replaces it with the installing python instance.
>>
>> i do not seem to find a way to disable this "feature". only way i found so far is to use setup.cfg as described here
>> http://stackoverflow.com/questions/1530702/dont-touch-my-shebang
>>
>> has somebody a smarter way to circumvent setup replacing our shebang?
>>
>> ..ede
>>
>> On 25.10.2015 17:53, Kenneth Loafman wrote:
>> > No problem, go ahead and change it.
>> >
>> > ...Ken
>> >
>> >
>> > On Sun, Oct 25, 2015 at 11:20 AM, <address@hidden <mailto:address@hidden> <mailto:address@hidden <mailto:address@hidden>>> wrote:
>> >
>> > hey Ken,
>> >
>> > any specific reason why we expect python to reside in /usr/bin . just spent 5 hours try to find out why duplicity didn't like to play well with several python versions installed under /usr/local/python-<version> just to find out that the interpreter path is hardcoded after the shebang.
>> >
>> > would you oppose a more generic
>> > #!/usr/bin/env python
>> > which would look up python in the current PATH env var?
>> >
>> > ..ede
>> >
>> > _______________________________________________
>> > Duplicity-talk mailing list
>> > address@hidden <mailto:address@hidden> <mailto:address@hidden <mailto:address@hidden>>
>> > https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > Duplicity-talk mailing list
>> > address@hidden <mailto:address@hidden>
>> > https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>> >
>>
>> _______________________________________________
>> Duplicity-talk mailing list
>> address@hidden <mailto:address@hidden>
>> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>>
>>
>>
>> _______________________________________________
>> Duplicity-talk mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
_______________________________________________
Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk
[Prev in Thread] | Current Thread | [Next in Thread] |