Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-08 Thread Charles R Harris
PR #6429 is a preliminary cut at removing single file build support. A bit of cleanup remains, mostly rearranging some defines for style. Chuck ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Mon, Oct 5, 2015 at 11:26 PM, Nathaniel Smith wrote: > Hi all, > > For a long time, NumPy has supported two different ways of being compiled: > > "Separate compilation" mode: like most C projects, each .c file gets > compiled to a .o file, and then the .o files get linked

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Antoine Pitrou
On Tue, 6 Oct 2015 11:00:30 +0100 David Cournapeau wrote: > > Assuming one of the rumour is related to some comments I made some time > (years ?) earlier, the context was the ability to hide exported symbols. As > you know, the issue is not to build extensions w/ multiple

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 12:07 PM, Antoine Pitrou wrote: > On Tue, 6 Oct 2015 11:00:30 +0100 > David Cournapeau wrote: > > > > Assuming one of the rumour is related to some comments I made some time > > (years ?) earlier, the context was the ability to

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Antoine Pitrou
On Tue, 6 Oct 2015 09:40:43 -0700 Nathaniel Smith wrote: > > If you need some npy_* function it'd be much better to let us know > what it is and let us export it in an intentional way, instead of just > relying on whatever stuff we accidentally exposed? Ok, we seem to be using

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Nathaniel Smith
On Tue, Oct 6, 2015 at 10:00 AM, Antoine Pitrou wrote: > On Tue, 6 Oct 2015 09:40:43 -0700 > Nathaniel Smith wrote: >> >> If you need some npy_* function it'd be much better to let us know >> what it is and let us export it in an intentional way, instead of

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Nathaniel Smith
On Tue, Oct 6, 2015 at 9:51 AM, David Cournapeau wrote: > > On Tue, Oct 6, 2015 at 5:44 PM, Nathaniel Smith wrote: >> >> On Tue, Oct 6, 2015 at 4:46 AM, David Cournapeau >> wrote: >> > The npy_ functions in npymath were designed to be

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 6:07 PM, Nathaniel Smith wrote: > On Tue, Oct 6, 2015 at 10:00 AM, Antoine Pitrou > wrote: > > On Tue, 6 Oct 2015 09:40:43 -0700 > > Nathaniel Smith wrote: > >> > >> If you need some npy_* function it'd be much better

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 6:14 PM, Nathaniel Smith wrote: > On Tue, Oct 6, 2015 at 10:10 AM, David Cournapeau > wrote: > > > > > > On Tue, Oct 6, 2015 at 6:07 PM, Nathaniel Smith wrote: > >> > >> On Tue, Oct 6, 2015 at 10:00 AM, Antoine Pitrou

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Antoine Pitrou
On Tue, 6 Oct 2015 10:07:13 -0700 Nathaniel Smith wrote: > > And how are you getting at them? Are you just relying the way that on > ELF systems, if two libraries are loaded into the same address space > then they automatically get access to each other's symbols, even if > they

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 5:44 PM, Nathaniel Smith wrote: > On Tue, Oct 6, 2015 at 4:46 AM, David Cournapeau > wrote: > > The npy_ functions in npymath were designed to be exported. Those would > stay > > that way. > > If we want to export these then I vote that

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Nathaniel Smith
On Tue, Oct 6, 2015 at 9:51 AM, David Cournapeau wrote: > > On Tue, Oct 6, 2015 at 5:44 PM, Nathaniel Smith wrote: >> >> On Tue, Oct 6, 2015 at 4:46 AM, David Cournapeau >> wrote: >> > The npy_ functions in npymath were designed to be

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 5:51 PM, David Cournapeau wrote: > > > On Tue, Oct 6, 2015 at 5:44 PM, Nathaniel Smith wrote: > >> On Tue, Oct 6, 2015 at 4:46 AM, David Cournapeau >> wrote: >> > The npy_ functions in npymath were designed to be

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Nathaniel Smith
On Tue, Oct 6, 2015 at 4:46 AM, David Cournapeau wrote: > The npy_ functions in npymath were designed to be exported. Those would stay > that way. If we want to export these then I vote that we either: - use the usual API export mechanism, or else - provide a static library

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 6:18 PM, David Cournapeau wrote: > > > On Tue, Oct 6, 2015 at 6:14 PM, Nathaniel Smith wrote: > >> On Tue, Oct 6, 2015 at 10:10 AM, David Cournapeau >> wrote: >> > >> > >> > On Tue, Oct 6, 2015 at 6:07 PM, Nathaniel

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread David Cournapeau
On Tue, Oct 6, 2015 at 5:58 PM, Nathaniel Smith wrote: > On Tue, Oct 6, 2015 at 9:51 AM, David Cournapeau > wrote: > > > > On Tue, Oct 6, 2015 at 5:44 PM, Nathaniel Smith wrote: > >> > >> On Tue, Oct 6, 2015 at 4:46 AM, David Cournapeau

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-06 Thread Nathaniel Smith
On Tue, Oct 6, 2015 at 10:10 AM, David Cournapeau wrote: > > > On Tue, Oct 6, 2015 at 6:07 PM, Nathaniel Smith wrote: >> >> On Tue, Oct 6, 2015 at 10:00 AM, Antoine Pitrou >> wrote: >> > On Tue, 6 Oct 2015 09:40:43 -0700 >> > Nathaniel

Re: [Numpy-discussion] Should we drop support for "one file" compilation mode?

2015-10-05 Thread Antoine Pitrou
On Mon, 5 Oct 2015 15:26:17 -0700 Nathaniel Smith wrote: > Hi all, > > For a long time, NumPy has supported two different ways of being compiled: > > "Separate compilation" mode: like most C projects, each .c file gets > compiled to a .o file, and then the .o files get linked