Merge lp:~bjornt/snapcraft/setuptools into lp:~snappy-dev/snapcraft/core
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Ted Gould on 2015-09-14 | ||||
| Approved revision: | 140 | ||||
| Merged at revision: | 158 | ||||
| Proposed branch: | lp:~bjornt/snapcraft/setuptools | ||||
| Merge into: | lp:~snappy-dev/snapcraft/core | ||||
| Diff against target: |
94 lines (+37/-4) 4 files modified
snapcraft/plugins/python2.py (+1/-0) snapcraft/plugins/python2_project.py (+18/-2) snapcraft/plugins/python3.py (+1/-0) snapcraft/plugins/python3_project.py (+17/-2) |
||||
| To merge this branch: | bzr merge lp:~bjornt/snapcraft/setuptools | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Sergio Schvezov | 2015-09-10 | Approve on 2015-09-14 | |
| Ted Gould (community) | 2015-09-11 | Approve on 2015-09-14 | |
|
Review via email:
|
|||
Commit Message
Add support for setuptools based python projects.
Description of the Change
Add support for setuptools based Python project.
I initially did it for Python3 only, but then I saw lp:~sergiusens/snapcraft/setuptools for Python 2. I merged in that branch and made the implementations consistent.
- 138. By Björn Tillenius on 2015-09-11
-
Merge trunk, resolve conflicts.
- 139. By Björn Tillenius on 2015-09-11
-
Lint.
| Sergio Schvezov (sergiusens) wrote : | # |
- 140. By Björn Tillenius on 2015-09-11
-
Use os.path.join()
Use single quotes instead of double quotes.
| Björn Tillenius (bjornt) wrote : | # |
On Fri, Sep 11, 2015 at 06:05:35PM -0000, Sergio Schvezov wrote:
> this looks good.
>
> I would prefer os.path.join instead of self.installdir + '/... though
Sure. I've changed it to use os.path.join()
I also changed all the strings to use single quotes, since you seem to
prefer that.
--
Björn Tillenius | https:/
| Ted Gould (ted) wrote : | # |
So, what I don't love about this branch is that it pulls in setuptools everytime, even if you're not using it to build the package. All Python users are getting setup tools installed into their snap. Now, this isn't your fault. There isn't currently a way to fix this. Sergio is brainstorming a solution, but my thought is that if there's nothing easy we can take this as is with a TODO to fix that eventually.
| Ted Gould (ted) wrote : | # |
Talking on IRC about this, we don't have a solution for the packages yet, but we don't think this branch should block because of that.


this looks good.
I would prefer os.path.join instead of self.installdir + '/... though