1 |
Dnia 2013-08-26, o godz. 17:11:12 |
2 |
Mike Gilbert <floppym@g.o> napisał(a): |
3 |
|
4 |
> On Mon, Aug 26, 2013 at 4:21 PM, Michał Górny <mgorny@g.o> wrote: |
5 |
> > Dnia 2013-08-25, o godz. 21:51:17 |
6 |
> > Mike Gilbert <floppym@g.o> napisał(a): |
7 |
> > |
8 |
> >> I just committed this somewhat ugly code in twisted-core-13.0.0-r2.ebuild. |
9 |
> >> |
10 |
> >> # Bug 299736 |
11 |
> >> local pyver=$("${PYTHON}" -c 'import sys; print("%d.%d" % |
12 |
> >> sys.version_info[:2])') |
13 |
> >> touch "${D%/}${PYTHON_SITEDIR}/Twisted-${PV}-py${pyver}.egg-info" |
14 |
> >> |
15 |
> >> This takes the place of a python_get_version -l call from the old python.eclass. |
16 |
> >> |
17 |
> >> Is this something that we should provide in the new eclasses? |
18 |
> > |
19 |
> > I don't really feel like we should be touching egg-info like this. |
20 |
> > |
21 |
> > By the way, doesn't the 'bundle' egg-info imply pulling in all Twisted |
22 |
> > packages rather than -core itself? |
23 |
> > |
24 |
> |
25 |
> You could look at it that way; however, we also need to keep in mind |
26 |
> that it was designed for easy_install / pip. As well, the download |
27 |
> page[1] at Twisted upstream literally says "You probably don't want |
28 |
> these unless you have special consideration" in the section containing |
29 |
> the individual project tarballs, so our installation method could |
30 |
> already be considered non-standard. |
31 |
> |
32 |
> With portage, we express more precise dependencies at the ebuild |
33 |
> level, so the dependencies that end up in egg-info/requires.txt are |
34 |
> largely irrelevant. The above code just fakes it out so that |
35 |
> pkg_requires doesn't throw an exception. |
36 |
|
37 |
Ok, I see. Yet another Python project management screwup ;/. |
38 |
|
39 |
Can we get setup.py to create the egg-info file in a more friendly way? |
40 |
Like adding something to packages or so on? |
41 |
|
42 |
-- |
43 |
Best regards, |
44 |
Michał Górny |