Merge lp:~ericsnowcurrently/fake-juju/fix-makefile-python-path into lp:~landscape/fake-juju/trunk-old

Proposed by Eric Snow
Status: Rejected
Rejected by: Eric Snow
Proposed branch: lp:~ericsnowcurrently/fake-juju/fix-makefile-python-path
Merge into: lp:~landscape/fake-juju/trunk-old
Diff against target: 12 lines (+1/-1)
1 file modified
Makefile (+1/-1)
To merge this branch: bzr merge lp:~ericsnowcurrently/fake-juju/fix-makefile-python-path
Reviewer Review Type Date Requested Status
Francis Ginther (community) Needs Fixing
Chad Smith Needs Information
🤖 Landscape Builder test results Approve
Review via email: mp+310911@code.launchpad.net

Description of the change

Set PYTHONPATH properly when installing python-fakejuju using setuptools.

Testing instructions:

On Yakkety (see https://code.launchpad.net/~landscape/+recipe/fake-juju-daily),
run "make py-install".

To post a comment you must log in.
Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :
review: Approve (test results)
Revision history for this message
Chad Smith (chad.smith) wrote :

I was able to see "dpkg-buildpackage -b" fail prior to this branch on the py-install target. And after merging this branch dpkg-buildpackage -b succeeds.

As per your test instructions, I also hit the same issue Francis reported,

I can't make py-install target on fresh yakkety or xenial systems.
cd python; python setup.py test also fails with the same traceback.

pip can't find "yaml" requirement for some reason.

running test
Searching for yaml
Reading https://pypi.python.org/simple/yaml/
No local packages or working download links found for yaml
error: Could not find suitable distribution for Requirement.parse('yaml')

Revision history for this message
Chad Smith (chad.smith) wrote :

Actually dpkg-buildpackage -b failed both before and after this branch.
I'm not sure how this works. Currently.

review: Needs Information
Revision history for this message
Francis Ginther (fginther) wrote :

As mentioned on IRC, I'm getting errors when trying to build this in a clean yakkety lxc:

No local packages or working download links found for yaml
error: Could not find suitable distribution for Requirement.parse('yaml')

I'm also trying to build a package with sbuild, but so far am hitting dependency issues unrelated to this change. Will keep trying.

review: Needs Fixing

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Makefile'
--- Makefile 2016-11-03 16:56:10 +0000
+++ Makefile 2016-11-15 17:59:27 +0000
@@ -149,7 +149,7 @@
149 if [ ! "$(SKIP_PYTHON_LIB)" ]; then \149 if [ ! "$(SKIP_PYTHON_LIB)" ]; then \
150 mkdir -p $(PYTHON_INSTALLDIR); \150 mkdir -p $(PYTHON_INSTALLDIR); \
151 cd python; \151 cd python; \
152 $(PYTHON) setup.py install $(PYTHON_INSTALL_OPTION); \152 PYTHONPATH=$(PYTHON_INSTALLDIR):$$PYTHONPATH $(PYTHON) setup.py install $(PYTHON_INSTALL_OPTION); \
153 fi153 fi
154154
155.PHONY: py-install-dev155.PHONY: py-install-dev

Subscribers

People subscribed via source and target branches

to all changes: