[bind10-dev] python files below src/bin
Jelte Jansen
jelte at isc.org
Mon Mar 15 13:38:38 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 03/15/2010 10:49 AM, Jelte Jansen wrote:
>
> 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)?
>
seeing that there is already a second discussion about the problem, i
though about it some more; there's two ways we could do this;
* move imported files to under lib/python/isc in the source tree (for
instance, *.py in src/bin/bindctl/ to src/lib/python/isc/bincdtl/) and
update the imports in those files (prepend them with isc.bindctl.) Files
included by our binaries would be the same as other library components.
* leave them where they are now, but *install* them to
<prefix>/lib/python3.1/site-packages/<module_name> (i.e. install
src/bind/bindctl/*.py to <prefix>/lib/python3.1/site-packages/bindctl)
and prepend the import statements with bindctl. If we then add src/bin/
to the PYTHONPATH export in run_bind10.py we can still run it both from
source and installed.
The latter case would keep the code more near where it is used (these
are imported only by the binaries and not needed anywhere else)
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkueOF4ACgkQ4nZCKsdOncU4MQCZAZPypza5nDOhVNMgLX7eoHXl
pBIAnj9Ssn9hWYFTdDX1RkRRK4MZE68N
=bQmP
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list