Better support python-setuptools

Bug #1481864 reported by Michael Terry
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
High
Björn Tillenius

Bug Description

Sergio tried using setuptools in a python project. He suggested that we add python-setuptools to the python2 plugin (in addition to python-dev). And presumably also python3-setuptools to python3.

He also ran into a problem with PYTHONPATH: http://paste.ubuntu.com/12007497/

We skipped setting PYTHONPATH because Ubuntu's pythons can automatically set that based on the path of the executable. But setuptools is a little more finicky. Either we need to export PYTHONPATH for setuptool's benefit. Or do something else like in https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations to tell setuptools where to go.

Related branches

Michael Vogt (mvo)
affects: snappy → snapcraft
Changed in snapcraft:
status: New → In Progress
Revision history for this message
Björn Tillenius (bjornt) wrote :

I added a branch that adds setuptools support for both Python2 and Python3.

Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
milestone: none → 0.2
Changed in snapcraft:
assignee: nobody → Björn Tillenius (bjornt)
importance: Undecided → High
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.