[Twisted-Python] MANIFEST.in for RPMs
If anyone has an interest in using the bdist_rpm option with setup.py to build Twisted RPMs, the MANIFEST.in file needs the following additions: include twisted/runner/portmap.c include twisted/protocols/_c_urlarg.c include twisted/lore/template.mgp include twisted/web/woven/FlashConduit* include twisted/web/woven/WebConduit* include twisted/test/process.alias.sh* include twisted/test/rfc822.message include twisted/test/server.pem Also, for a Twisted installation that works with any installed version of Python (e.g. 2.2 and 2.3), you can install Twisted to /usr/lib/site-python by adding these lines to setup.cfg: [install] install-lib = /usr/lib/site-python /usr/lib/site-python seems far more convenient than /usr/lib/pythonX/site-packages, don't know why it isn't the default. John Landahl john@landahl.org
John Landahl wrote:
If anyone has an interest in using the bdist_rpm option with setup.py to build Twisted RPMs, the MANIFEST.in file needs the following additions:
Thanks. I should note however that the recommeded way of building RPMs is using admin/twisted.spec.
Also, for a Twisted installation that works with any installed version of Python (e.g. 2.2 and 2.3), you can install Twisted to /usr/lib/site-python by adding these lines to setup.cfg:
[install] install-lib = /usr/lib/site-python
/usr/lib/site-python seems far more convenient than /usr/lib/pythonX/site-packages, don't know why it isn't the default
Because it's wrong. Twisted has C extensions, and those are specific to the version of Python used to compile Twisted. -- Itamar Shtull-Trauring http://itamarst.org/ Available for Python & Twisted consulting
Itamar Shtull-Trauring wrote:
John Landahl wrote:
/usr/lib/site-python seems far more convenient than /usr/lib/pythonX/site-packages, don't know why it isn't the default
Because it's wrong. Twisted has C extensions, and those are specific to the version of Python used to compile Twisted.
Even without C, the bytecodes generated for the installed .pyc files are different between python versions.
On Nov 6, 2003, at 10:49 AM, Glyph Lefkowitz wrote:
Itamar Shtull-Trauring wrote:
John Landahl wrote:
/usr/lib/site-python seems far more convenient than /usr/lib/pythonX/site-packages, don't know why it isn't the default Because it's wrong. Twisted has C extensions, and those are specific to the version of Python used to compile Twisted.
Even without C, the bytecodes generated for the installed .pyc files are different between python versions.
That python will try and import every time, and if you don't have the same python version installed it will recompile them every run.. and not be able to save them for permissions reason. -bob
participants (4)
-
Bob Ippolito
-
Glyph Lefkowitz
-
Itamar Shtull-Trauring
-
John Landahl