From lhansen@fysik.dtu.dk Mon Apr 7 17:41:01 2003 From: lhansen@fysik.dtu.dk (Lars Bruno Hansen) Date: Mon Apr 7 16:41:01 2003 Subject: [Distutils] more entries in pth files Message-ID: <3E91E225.7060604@fysik.dtu.dk> dear all Is it possible to add more lines to the pth files generated using distutils setup? I am using the extra_path argument to setup to collect a a subtree of python modules under one entry in site-packages, however for one of the modules in the subtree I want to have direct access. This we have done before by creating the pth file manually containing two lines. I have not been able to find a way to do this using distutils. Any help on this is greatly appreciated with best regards Lars -- Lars Bruno Hansen, CAMP, Dept. of Physics, Building 307, DTU, DK-2800 Lyngby, Denmark Phone: +45 45 25 32 16 Fax: +45 45 93 23 99 E-mail: lhansen@fysik.dtu.dk From mal@lemburg.com Tue Apr 15 04:34:04 2003 From: mal@lemburg.com (M.-A. Lemburg) Date: Tue Apr 15 03:34:04 2003 Subject: [Distutils] Redhat RPM for PyXML 0.8.2? In-Reply-To: References: <200304141816.h3EIG1Yt003676@conversent.net> Message-ID: <3E9BB5A7.9070808@lemburg.com> [From a discussion on xml-sig about problems with RedHat8] Martin v. L=F6wis wrote: > Craeg Strong writes: >=20 >=20 >>Yes, this function does not exist in Python 2.1.3 (win2K) >>__revision__=20 >>I am sure that upgrading to Python 2.2.2 would fix this >>problem, and I will certainly do this as soon as Zope >>2.7 is released... >=20 > Ah, ok. So I guess you are more-or-less out of luck. We simply cannot > support building RPMs on Python 2.1, and Redhat 8: You either need an > older RPM package (where rpm -ba still works), or a newer Python > (where rpmbuild is used). >=20 > Replacing distutils wholesale should probably work, as well, but no > distutils release is forthcoming. Since Python 2.3 will ship with the last distutils version which is compatible with Python 1.5.2 I think it would be a good idea do another release... --=20 Marc-Andre Lemburg eGenix.com Professional Python Software directly from the Source (#1, Apr 15 2003) >>> Python/Zope Products & Consulting ... http://www.egenix.com/ >>> mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/ ________________________________________________________________________ EuroPython 2003, Charleroi, Belgium: 70 days left From acapnotic@twistedmatrix.com Fri Apr 18 19:26:02 2003 From: acapnotic@twistedmatrix.com (Kevin Turner) Date: Fri Apr 18 18:26:02 2003 Subject: [Distutils] installing data files and headers In-Reply-To: <20030228211409.A27766@nyman.amk.ca> References: <1046446257.29989.79.camel@localhost.localdomain> <20030228211409.A27766@nyman.amk.ca> Message-ID: <1050702397.22306.327.camel@troglodyte.funhouse> --=-iXdo8wVkbgwOWsLADvJG Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2003-02-28 at 18:14, A.M. Kuchling wrote: > On Fri, Feb 28, 2003 at 10:31:00AM -0500, Jeremy Hylton wrote: > >Another problem we've been struggling with for Zope projects is that > >distutils really only installs Python modules and extensions. It's > >support for data files [...] is pretty limited. >=20 > Good idea. We have a similar subclass for Quixote that installs *.ptl > files, and it's a common need. That it is. I've also had need for this (Twisted applications may want to distribute plug-in or other data/template files alongside modules), and it's a source of great frustration to me that while the topic has come up again time and time again on this list, no common solution has taken hold in distutils. Does this lack of consensus indicate that packager's needs are really so unique that they each need to implement their own tailored solution? --=20 The moon is waning gibbous, 95.1% illuminated, 16.9 days old. --=-iXdo8wVkbgwOWsLADvJG Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+oHI8h3hqIoukqUQRAn2xAJ0fQAVKleShDGTiVTHvTinS14+CTACeP9ys D/dVrBvD0mHK5kKFfqYrqeo= =BHip -----END PGP SIGNATURE----- --=-iXdo8wVkbgwOWsLADvJG-- From nieder@mail.ru Mon Apr 28 23:43:04 2003 From: nieder@mail.ru (Ricardo Niederberger Cabral) Date: Mon Apr 28 22:43:04 2003 Subject: [Distutils] AssertionError when building rpm under RedHat 9.1 Message-ID: <20030428234119.0e07d475.nieder@mail.ru> >From distutils __version__ = "1.0.3": File "distutils/command/bdist_rpm.py", line 316, in run assert len(rpms) == 1, \ AssertionError: unexpected number of RPM files found: ['build/bdist.linux-i686/rpm/RPMS/i386/imgSeek-0.7-1.i386.rpm', 'build/bdist.linux-i686/rpm/RPMS/i386/imgSeek-debuginfo-0.7-1.i386.rpm'] I had to remove the assert statement on bdist_rpm.py:316 in order to build my rpm. Would it be possible to change from "assert len(rpms) == 1" to "assert len(rpms) >= 1" ? Since rpmbuild from RH seems to always generate this extra -debuginfo rpm. Best regards, -- rnc