[reportlab-users] building RPM renderPM
Dirk Datzert
reportlab-users@reportlab.com
Sun, 24 Nov 2002 22:05:59 +0100
Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------7F26E0AA74758F65C112FB99
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
for building renderPM as RPM little changes are helpfull.
In /usr/lib/python2.1/distutils/command/sdist.py lines beyond 310 should
be changed like this:
if self.distribution.has_ext_modules():
build_ext = self.get_finalized_command('build_ext')
self.filelist.extend(build_ext.get_source_files())
## if self.distribution.has_c_libraries():
## build_clib = self.get_finalized_command('build_clib')
## self.filelist.extend(build_clib.get_source_files())
distutils has a broken build_clib.get_source_files
With this change and the attached MANIFEST.in und setup.py a RPM can be
build via:
python setup.py bdist_rpm
Regards,
Dirk
--------------7F26E0AA74758F65C112FB99
Content-Type: application/x-unknown-content-type-py_auto_file;
name="setup.py"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="setup.py"
IyEvdXNyL2Jpbi9lbnYgcHl0aG9uDQppbXBvcnQgb3MsIHN5cywgc3RyaW5nDQpkZWYgbGli
YXJ0X3ZlcnNpb24oKToNCglLID0gKCdMSUJBUlRfTUFKT1JfVkVSU0lPTicsJ0xJQkFSVF9N
SU5PUl9WRVJTSU9OJywnTElCQVJUX01JQ1JPX1ZFUlNJT04nKQ0KCUQgPSB7fQ0KCWZvciBs
IGluIG9wZW4oJ2xpYmFydF9sZ3BsL2NvbmZpZ3VyZS5pbicsJ3InKS5yZWFkbGluZXMoKToN
CgkJbCA9IHN0cmluZy5zcGxpdChzdHJpbmcuc3RyaXAobCksJz0nKQ0KCQlpZiBsZW4obCk+
MSBhbmQgc3RyaW5nLnN0cmlwKGxbMF0pIGluIEs6DQoJCQlEW3N0cmluZy5zdHJpcChsWzBd
KV0gPSBzdHJpbmcuc3RyaXAobFsxXSkNCgkJCWlmIGxlbihEKT09MzogYnJlYWsNCglyZXR1
cm4gKHN5cy5wbGF0Zm9ybSA9PSAnd2luMzIn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IHN5cy5oZXh2ZXJz
aW9uPj0weDIwMjAwYTA6IHNyYyA9IG9zLnBhdGguam9pbihzcmMsJ2xpYicsJ3NpdGUtcGFj
a2FnZXMnKQ0KCQkJZm9yIGYgaW4gRjoNCgkJCQlzcmNmID0gb3MucGF0aC5qb2luKHNyYyxm
KQ0KCQkJCWlmIG5vdCBvcy5wYXRoLmlzZmlsZShzcmNmKTogY29udGludWUNCgkJCQlkc3Rm
ID0gb3MucGF0aC5qb2luKGRzdCxmKQ0KCQkJCWlmIG9zLnBhdGguaXNmaWxlKGRzdGYpOg0K
CQkJCQlvcy5yZW1vdmUoZHN0ZikNCgkJCQlvcy5yZW5hbWUoc3JjZixkc3RmKQ0KCQlNb3Zl
UFlEcygnX3JlbmRlclBNLnB5ZCcsJ19yZW5kZXJQTS5wZGInKQ0K
--------------7F26E0AA74758F65C112FB99
Content-Type: text/plain; charset=us-ascii;
name="MANIFEST.in"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="MANIFEST.in"
include _renderPM.c
recursive-include gt1 *
recursive-include libart_lgpl *
--------------7F26E0AA74758F65C112FB99--