Python3 search path order when building Debian package

2014-08-11 Thread Thomas Goirand
Hi, During the build of oslo packages for OpenStack, I'm having the issue that python3 seems to first look into /usr/lib/python3.4/dist-packages/olso, finds stuff in it, and then do not search in the local directory. Because of that, unit tests are failing during the build. For example, when

Re: Python3 search path order when building Debian package

2014-08-11 Thread Piotr Ożarowski
[Thomas Goirand, 2014-08-11] During the build of oslo packages for OpenStack, I'm having the issue that python3 seems to first look into /usr/lib/python3.4/dist-packages/olso, finds stuff in it, and then do set PYTHONPATH to local dir with your module (. or where your build target

Re: Python3 search path order when building Debian package

2014-08-11 Thread Thomas Goirand
On 08/11/2014 07:30 PM, Piotr Ożarowski wrote: [Thomas Goirand, 2014-08-11] During the build of oslo packages for OpenStack, I'm having the issue that python3 seems to first look into /usr/lib/python3.4/dist-packages/olso, finds stuff in it, and then do set PYTHONPATH to local dir with your

Re: Python3 search path order when building Debian package

2014-08-11 Thread Piotr Ożarowski
override_dh_auto_test: ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) @echo === Running tests set -e set -x for i in 2.7 $(PYTHON3S) ; do \ PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ echo === Testing with python$$i (python$$PYMAJOR) ; \

Re: Python3 search path order when building Debian package

2014-08-11 Thread Jakub Wilk
It's most likely unrelated to your problem, but... * Thomas Goirand z...@debian.org, 2014-08-12, 02:51: set -e set -x for i in 2.7 $(PYTHON3S) ; do \ set -e has no effect on statements that use . So you probably want s//;/g here. TEMP_REZ=`mktemp -t` \