Opened 21 years ago

Closed 21 years ago

Last modified 9 years ago

#1397 closed defect (fixed)

NEW: MySQL-python-0.9.2

Reported by: ryanwilcox@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

MySQL-python-0.9.2

this portfile can be found here: http://wilcoxd.com/OSS/darwinports/mysql-python.tgz

Description: This Python module allows you to interface with MySQL databases. Required a patch to get the setup.py script pointing the the standard /opt/local/ DP install place.

Homepage: http://sourceforge.net/projects/mysql-python

Comments: The patch for setup.py hardcodes the /opt/local path. Perhaps this needs to be looked into (or perhaps not) - but I don't know a way of dynamically placing the DP install path in there.

Attachments (2)

mysql-python.tgz (1.5 KB) - added by ryanwilcox@… 21 years ago.
the portfile +patch for setup.py
patch-setup.py.diff (4.7 KB) - added by ryanwilcox@… 21 years ago.
Version 2 of the patch for setup.py

Download all attachments as: .zip

Change History (7)

Changed 21 years ago by ryanwilcox@…

Attachment: mysql-python.tgz added

the portfile +patch for setup.py

comment:1 Changed 21 years ago by pguyot (Paul Guyot)

Status: newassigned

I don't know a way of dynamically placing the DP install path in there.

The trick is to use reinplace to avoid hard-coding the prefix. I just did that on ocaml port, but you'll find it in many other ports.

comment:2 Changed 21 years ago by pguyot (Paul Guyot)

Resolution: fixed
Status: assignedclosed

comment:3 Changed 21 years ago by ryanwilcox@…

Resolution: fixed
Status: closedreopened

Inline you'll find a patch for the portfile, to take advantage of additional modifications to the setup.py.

You'll also find another attachement that contains another patch for setup.py - this one allowing you to specify the prefix/includedir/libdir in the arguments intead of hardcoding it.

Patch for the Portfile


--- Portfile_original	Thu Jan  8 10:05:13 2004
+++ Portfile	Thu Jan  8 10:53:30 2004
@@ -19,8 +19,9 @@
 patchfiles			patch-setup.py.diff
 use_configure		no
 
+build.args			--includedir=${prefix}/include/mysql --libdir=${prefix}/lib/mysql/
 build.cmd			python setup.py
 build.target		build
 
-destroot.destdir	--prefix=${destroot}${prefix}
+destroot.destdir	--includedir=${prefix}/include/mysql --libdir=${prefix}/lib/mysql/
 destroot.cmd		python setup.py
Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 21 years ago by ryanwilcox@…

Attachment: patch-setup.py.diff added

Version 2 of the patch for setup.py

comment:4 Changed 21 years ago by pguyot (Paul Guyot)

Actually, everything went to: /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/

During the destroot phase, which is not what we want, while the current version puts things in ${destroot}${prefix} on my box.

comment:5 Changed 21 years ago by ryanwilcox@…

Resolution: fixed
Status: reopenedclosed

I'm happy with the port as checked into CVS. At some point in the (very unknown) future I may take another run at getting version 2 of this port working, but am closing the bug for now.

Note: See TracTickets for help on using tickets.