Commit graph

37 commits

Author SHA1 Message Date
obache
45a19863bb Move PY_PEP3147 specific PRINT_PLIST handling from common mk/plist/print-plist.mk
to lang/python/extension.mk, handling reverse way.
2014-01-24 12:42:52 +00:00
wiz
6dbc64f622 Remove python32 as proposed a week ago on pkgsrc-users.
Upstream doesn't talk about it any longer, and python-3.3 is a drop-in
replacement.
Ok bsiegert, prlw1, rodent
2014-01-12 09:01:50 +00:00
obache
1391641f0d Add a package settable `PY_PEP3147=no' for the case PEP 3147 is not supported. 2013-11-10 13:05:54 +00:00
obache
b28fb07508 Only define do-test target for the case package itself does not define own
test target.
2013-10-30 08:39:07 +00:00
wiz
f0b9a9817e Restore PY_PATCHPLIST line, lost in previous (hi tron!) 2013-10-29 23:52:56 +00:00
tron
c52a33e0c7 Define "do-test" target for testing Python packages. 2013-10-29 14:18:33 +00:00
wiz
7ea8e815be Remove python25, as promised in March. EOL'd last year. 2012-10-03 22:03:41 +00:00
obache
be4aa8c897 prepare Python>=32 bytecode file location change 2012-05-13 12:54:54 +00:00
obache
63c67c856b also put PYLIB in PLIST_SUBST, a part of PR#44826. 2011-05-04 10:01:02 +00:00
gdt
e5b32819c1 Explain that PY_NO_EGG probably exists because distutils in Python 2.4
and earlier did not create egg files.
2010-07-24 00:57:17 +00:00
gdt
f2722239f9 Explain what extension.mk is for, vs egg.mk, and clarify the notion of
egg info files in non-egg python distributions.

Add a comment that PY_NO_EGG appears wrong.  Obviously there is a
reason it was added, but we need to figure out why and if it's still
true.
2010-07-23 22:56:40 +00:00
wiz
d28684c16f Add optional user-setable PYSETUPARGS variable that is added to the build
and install command lines _before_ the target name.

Needed for non-target specific options, used e.g. by gaupol.
2010-07-21 11:29:10 +00:00
wiz
f4b19d7b46 Allow overriding build target for do-build, using PYSETUPBUILDTARGET. 2009-05-26 21:59:57 +00:00
joerg
3c95ad1d12 Move the PYTHON_VERSION_REQD logic from extension.mk to pyversion.mk.
It shouldn't hurt and allows including application.mk and extension.mk
in any order.
2009-03-08 17:05:10 +00:00
joerg
25a80fb4ab Remove PYBINMODULE. All it did was mark some packages as not available
on some platforms that lacked shared library support in the past. The
list hasn't been maintained at all and the gain is very limited, so just
get rid of it.
2009-03-05 18:51:26 +00:00
obache
c06768031a For bmake, empty() take a variable, and M modifier only accept the standard
shell wildcard characters.
2009-02-19 12:24:59 +00:00
abs
fb0d9752b1 Only derive PYTHON_VERSION_REQD from PKGNAME_REQD or PKGNAME_OLD if they
match py([0-9][0-9])-.*. Fixes breakage when building gnome which then
tries to build hamster-applet and chokes due to PYPKGPREFIX ending up
undefined.
2008-12-23 15:39:07 +00:00
joerg
db9239e13f Add support to derive the Python version from PKGNAME_OLD. 2008-10-06 14:41:50 +00:00
abs
7ebc8f2105 Move PY_NO_EGG?= check outside of defined(PYDISTUTILSPKG) to fix
PLIST of ap22-py25-python and similar packages (removes additional
egg-info file) From tnn@.  Passed via packages@ without objection
2008-06-30 13:41:05 +00:00
tnn
12935025fe prepare for arrival of Python 2.5 2008-04-24 01:39:25 +00:00
joerg
e616abfb19 With the advent of Apache module prefixes the Python package prefix
might not the first component of PKGNAME_REQD. Change this to match
either py[0-9][0-9] or the same string after a hyphen.
2007-10-31 00:59:52 +00:00
joerg
2a3a65e1e2 Add some basic infrastructure to manage Python eggs in pkgsrc.
We use the flat installation mode (e.g. no multiple versions by
default) by default. That avoids having to run DEINSTALL/INSTALL
scripts and allows DESTDIR installation.
2007-08-09 13:24:12 +00:00
joerg
297e6be4e8 distutils allows installation in a separate tree by passing
--root. Do so when using destdir.
2006-10-09 12:50:38 +00:00
recht
1d6d407223 Add missing part for the last python24 fix. 2006-01-24 07:25:35 +00:00
rillig
f3a8eb5b6a Use "+=" for PKG_FAIL_REASON. 2005-11-04 16:50:34 +00:00
adrianp
c27f428e15 - Fix an error where -lpython does not get defined on Darwin and causes
the compile of python modules to fail.
- Fixes PR# 28605
- Ok'ed recht@
2004-12-28 22:48:11 +00:00
darcy
f2eae255dc Add quotes around word "install" in the setup command.
Note that this cannot be changed to ${INSTALL} because it is not the install
command but rather an argument to setup.py.  While adding the quotes makes
no difference to the use of the file, it does keep pkglint quiet.  This is
even more important because this file is included by many other packages
and causes warnings when trying to check new Python extensions.
2004-06-12 21:18:31 +00:00
recht
5ae0dcc995 Fix PYTHON_VERSION_REQG regex for non-NetBSD native make (read for bmake). 2003-12-05 19:24:31 +00:00
darcy
291b036e4d Revert previous change. I was trying to get pkglint to keep quiet but
Marc Recht pointed out that install is not the install command here but
rather an argument to the Python setup program.
2003-12-03 12:26:35 +00:00
darcy
b4b58bfb37 Change hard coded call of install to use INSTALL environment variable. 2003-12-03 12:00:09 +00:00
recht
3619f6de56 Add a comment for the last change. 2003-11-03 18:25:01 +00:00
recht
585a55d24c Fix breakage caused by PKGNAME_REQD quoting in bsd.pkg.mk. 2003-11-01 12:10:00 +00:00
recht
e914ab3288 hange extension.mk to also install optimized files for distutils packages.
Inspired by FreeBSD "ports".

Fix the PLISTs accordingly.
Also, while at it, remove now obsolete compileall.py calls in post-install
targets and insure that extension.mk is in included before builinlinks of
other Python modules.

Discussed with/ok'ed by drochner@.
2003-09-14 16:43:45 +00:00
recht
13d6925118 Adapt a change from FreeBSD's ports Mk/bsd.python.mk.
Change the order of PYSETUP*AGS and the corresponding target.
Eg.:
s/${PYSETUPINSTALLARGS} install/install ${PYSETUPINSTALLARGS}/

This allows us to automatically install .pyo files with a
PYSETUPINSTALLARGS=-O1 -c and thus drop the compileall.py stuff in the
post-install target.

ok'ed by drochner@
2003-09-11 13:13:47 +00:00
jdolecek
a796119e39 some packages (e.g. py-wxWindows 2.4.0.7) have the Python setup.py
in subdirectory and need to execute setup.py in that directory, but
still need WRKSRC set to the base directory for configure/patch targets

to handle this, add PYSETUPSUBDIR variable (default empty), and
change do-build+do-install targets to use working directory
${WRKSRC}/${PYSETUPSUBDIR} when executing setup.py
2003-05-09 09:24:17 +00:00
schmonz
0a1bd5acad Replace IGNORE with PKG_FAIL_REASON or PKG_SKIP_REASON as appropriate. 2002-12-07 02:38:52 +00:00
jlam
e44bf515dc Strip the ".buildlink" from the names of the python application and
extension Makefile fragments, because they really don't have anything to
do with the buildlink[12] frameworks.  Change all the Makefiles that use
application.buildlink.mk and extension.buildlink.mk to use application.mk
and extension.mk instead.
2002-09-21 23:46:45 +00:00
Renamed from lang/python/extension.buildlink.mk (Browse further)