Bug 36537 - bsd.python.mk: Add USE_PYDISTUTILS shorthand
Summary: bsd.python.mk: Add USE_PYDISTUTILS shorthand
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thomas Gellekum
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-30 16:50 UTC by Hye-Shik Chang
Modified: 2002-04-17 12:41 UTC (History)
0 users

See Also:


Attachments
file.diff (4.03 KB, patch)
2002-03-30 16:50 UTC, Hye-Shik Chang
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.