[bind10-dev] python files below src/bin
Jelte Jansen
jelte at isc.org
Mon Mar 15 09:49:41 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/15/2010 10:38 AM, Shane Kerr wrote:
> Jelte,
>
> On Mon, 2010-03-15 at 09:44 +0100, Jelte Jansen wrote:
>> I just noticed that when doing make install bindctl is installed, but
>> the python modules it uses are not. Trying to figure out where it should
>> install those, I couldn't really find an example; only b10-cfgmgr has a
>> minimal .py.in file, the rest still contain nearly all code in the .in
>> file...
>>
>> The part of b10-cfgmgr that actually contains all the code lives under
>> src/lib/python/isc/config, and while that's technically not the best
>> place to put it, at least it gets installed.
>>
>> Should we move all .py files that support the python tools under lib? Or
>> should we keep them under bin/? And where should we install them then?
>
> Having things in "bin" that can't be run seems odd to me. These support
> files should surely be in a "lib" directory somewhere, or something like
> it.
>
> We already have:
>
> lib/python3.1/site-packages/isc
>
> So this seems like a reasonable place for random Python code, doesn't
> it?
>
oh yeah as for install targets, definitely under
lib/python3.1/site-packages/isc, but directly there? (i.e.
lib/python3.1/site-packages/isc/bind10/bind10.py, or
lib/python3.1/site-packages/tools/bind10/bind10.py or something similar)?
The bin/ is about the source tree; should we reflect the above in the
source tree as well? (i'd prefer not, and leave them together with the
script that needs them in one dir, though that may not be possible if we
want to then use import isc.tools.bind10)
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkueArUACgkQ4nZCKsdOncVe6gCgjBT/pa6740frIL30PKGJFl1K
LlUAnjeptBMfup/t3j7w8BpQmdW/v5FT
=0V0s
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list