Bug 36537

Summary: bsd.python.mk: Add USE_PYDISTUTILS shorthand
Product: Ports & Packages Reporter: Hye-Shik Chang <perky>
Component: Individual Port(s)Assignee: Thomas Gellekum <tg>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Hye-Shik Chang 2002-03-30 16:50:01 UTC
Toooo many python-related ports has same codes for distutils.
attached USE_PYDISTUTILS patch (comments are very poor. sorry)

and one additional patch for net/py-snmp just as testing sample.

(NetBSD has this trigger already.)
Comment 1 Patrick Li freebsd_committer freebsd_triage 2002-03-30 18:00:39 UTC
Responsible Changed
From-To: freebsd-ports->tg

Over to maintainer
Comment 2 Hye-Shik Chang 2002-03-30 21:03:55 UTC
oops sorry one mistake. ;)

--- bsd.python.mk.orig2	Sun Mar 31 06:01:49 2002
+++ bsd.python.mk	Sun Mar 31 06:02:01 2002
@@ -204,7 +204,7 @@
 
 .if !target(do-install)
 do-install:
-	@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install ${PYDISTUTILS_INSTALLARGS})
+	@(cd ${INSTALL_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} setup.py install ${PYDISTUTILS_INSTALLARGS})
 .endif
 .endif		# defined(USE_PYDISTUTILS)
Comment 3 Thomas Gellekum freebsd_committer freebsd_triage 2002-04-17 12:38:10 UTC
State Changed
From-To: open->closed

Committed, with minor changes. 

I added a PYSETUP to specify the name of the setup.py file. After checking 
with NetBSD's package system and following a suggestion from sobomax, 
I chose to not add the USE_PYDISTUTILS knob to bsd.port.mk; you'll 
have to define both USE_PYTHON and USE_PYDISTUTILS. I think this is only 
a minor inconvenience.