Re: [gentoo-dev] [PATCH] Eclass changes for cross-compiling Python modules

2019-01-04 Thread James Le Cuirot
On Fri, 04 Jan 2019 17:03:42 +0100 Michał Górny wrote: > On Thu, 2019-01-03 at 21:39 +, James Le Cuirot wrote: > > Here's a series of eclass changes I've been working on since August to > > allow Python modules to be cross-compiled. We previously believed this > > to be practically impossible

Re: [gentoo-dev] [PATCH 06/12] python-utils-r1.eclass: Don't die in python_fix_shebang if all fixed

2019-01-04 Thread Michał Górny
On Fri, 2019-01-04 at 13:10 -0500, Mike Gilbert wrote: > On Fri, Jan 4, 2019 at 10:55 AM Michał Górny wrote: > > > > On Thu, 2019-01-03 at 21:39 +, James Le Cuirot wrote: > > > Shebangs may need fixing on prefix systems or when cross-building but > > > not at other times. > > > > > > Signed-

Re: [gentoo-dev] [PATCH 06/12] python-utils-r1.eclass: Don't die in python_fix_shebang if all fixed

2019-01-04 Thread Mike Gilbert
On Fri, Jan 4, 2019 at 10:55 AM Michał Górny wrote: > > On Thu, 2019-01-03 at 21:39 +, James Le Cuirot wrote: > > Shebangs may need fixing on prefix systems or when cross-building but > > not at other times. > > > > Signed-off-by: James Le Cuirot > > --- > > eclass/python-utils-r1.eclass | 8

Re: [gentoo-dev] [PATCH] Eclass changes for cross-compiling Python modules

2019-01-04 Thread Michał Górny
On Thu, 2019-01-03 at 21:39 +, James Le Cuirot wrote: > Here's a series of eclass changes I've been working on since August to > allow Python modules to be cross-compiled. We previously believed this > to be practically impossible without significant changes upstream and > in the wider Python e

Re: [gentoo-dev] [PATCH 06/12] python-utils-r1.eclass: Don't die in python_fix_shebang if all fixed

2019-01-04 Thread Michał Górny
On Thu, 2019-01-03 at 21:39 +, James Le Cuirot wrote: > Shebangs may need fixing on prefix systems or when cross-building but > not at other times. > > Signed-off-by: James Le Cuirot > --- > eclass/python-utils-r1.eclass | 8 ++-- > 1 file changed, 2 insertions(+), 6 deletions(-) > > di

Re: [gentoo-dev] [PATCH 04/12] python-utils-r1.eclass: Use wrapper scripts to fix cross-compiling

2019-01-04 Thread Michał Górny
On Thu, 2019-01-03 at 21:39 +, James Le Cuirot wrote: > Python has little concept of cross-compiling but it turns out that > making it work isn't so hard after all. > > Platform-specific details are held within _sysconfigdata.py, > sysconfig.py, and various distutils files. If we simply symlin