This is the mail archive of the
mailing list for the Archer project.
Re: [python] Packacking - Python scripts directories
- From: Tom Tromey <tromey at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: archer at sourceware dot org
- Date: Mon, 02 Mar 2009 09:35:50 -0700
- Subject: Re: [python] Packacking - Python scripts directories
- References: <20090301192941.GA22627@host0.dyn.jankratochvil.net>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "Jan" == Jan Kratochvil <email@example.com> writes:
Jan> while rpm-packaging [python] branch into Archer I found there is
Jan> IMO incorrect placement of the Python scripts.
Jan> describes it should be placed in
Yeah, this would be fine by me.
Jan> --with-gdb-pythondir and `maint set gdb_pythondir' should be new
Jan> (IMO the GDB style would be more like `maint set python-directory'.)
Jan> As gdb.pythonlibdir is now the same as the system Python modules
Jan> directory it can be IMO removed. (I do not understand why
Jan> `import' with some error-catching is not used instead of locating
Jan> the include file in the code and using execfile() which IMO does
Jan> not provide the modules namespaces.)
I think the issue here is that we make the "gdb" module internally,
then play games to get python to understand that it can satisfy future
imports by reading from that directory.
If there's a better way, let's do it.
Jan> There are some remaining issue i do not have opinion on
Jan> (relocatability of the Python directories).
Yeah. We have to preserve relocatability because various other
gdb-using groups want it.
I think the default setup should be to install the python scripts
somewhere under $prefix, then have a separate option to tell configure
to find the system python directory and use that instead.
Jan> [archer-jankratochvil-python] ebd9eefcf0e56102c40cfd104eb1c290526b3f51 which
We're going to have to clear up this distinction with multiple
branches. I don't want us to lose changes due to branch confusion.
What if I merge master->archer-tromey-python again and we switch to that?