Commit Graph

87 Commits

Author SHA1 Message Date
naddy deea7ed07b drop SHARED_ONLY from python and ruby ports 2016-03-20 16:12:22 +00:00
naddy 17b84e4360 remove NO_SHARED_LIBS 2016-03-11 18:13:19 +00:00
jasper ac6e688019 - set a default HOMEPAGE for ports using MODPY_PI
- while here add _MODPY_EGG_NAME and re-use that to define MODPY_PI_DIR

idea from aja@
ok aja@ rpointel@
2016-01-07 21:14:06 +00:00
jasper cbf974b5d2 add MODPY_SETUP_ARGS which is used in MODPY_CMD. this allows for passing
arguments to setup.py as will be required by a virt-manager upgrade.

ok sthen@
2015-11-26 20:27:30 +00:00
sthen 26b53c6870 cope with 'env python' (extra space) in MODPY_BIN_ADJ, ok landry 2015-10-09 09:22:48 +00:00
sthen aeb03012b1 Force MODPY_SETUPUTILS_DEPEND version dependency on the new version, to
avoid surprises at runtime, edd@ agrees.

REVISION bump vomit incoming.
2015-09-29 10:50:16 +00:00
rpointel f3e4f44d12 permit to build ports with 3.5. 2015-09-23 19:26:01 +00:00
jasper 8a0cffc098 add MODPY_PI which automatically sets MASTER_SITES when set to 'yes'.
if the subdirectory needs to be overriden set MODPY_PI_DIR.

as discussed with sthen@ and rpointel@
earlier diff ok rpointel@
2015-04-02 13:57:10 +00:00
daniel 018d2f16ef Fix MODPY_TKINTER_DEPENDS when MODPY_SETUPTOOLS=Yes.
ok sthen@
2014-12-17 00:31:52 +00:00
naddy d4ca7b9741 remove python 3.3 leftovers; ok rpointel@ 2014-11-05 12:09:07 +00:00
jca 99e9b4c1b6 Fix MODPY_LIB_DEPENDS when using setuptools.
The make(1) variables assignements would lead to setuptools added to
MODPY_LIB_DEPENDS (bogus).  py-Pillow was affected but no plist change.
Fix _MODPY_BUILD_DEPENDS similarly, no port affected.
ok ajacoutot@, also discussed with sthen@ months ago
2014-11-01 10:24:16 +00:00
jasper 1d3beb7b63 distribute has been merged back into setuptools long time ago; python3 ports
can safely use setuptools now.

ok rpointel@
2014-09-29 07:00:22 +00:00
rpointel 1e99cde674 switch our default python 3 to python 3.4.
tested in a bulk build by landry@ (thanks).
2014-06-03 11:29:32 +00:00
rpointel d097a7853b understand Python 3.4. 2014-04-13 07:11:10 +00:00
dcoppa 4e50abc4ae Run '${MODPY_CMD} egg_info' at pre-build stage for setuptools-based
python ports and get rid of MODPY_BADEGGS

initial idea by me, better solution suggested by espie@
ok espie@, landry@, rpointel@
2013-10-03 16:28:00 +00:00
ajacoutot d76c816a4d Also set ac_cv_path_PYTHON to ${MODPY_BIN} the same way we set
ac_cv_prog_PYTHON. This is needed to prevent conflict between one set to
py2 and the other to py3... yeah configure scripts are stupid.

ok fgsch@
2013-09-24 16:55:02 +00:00
espie 103194bcf2 fix pre-build-steps to redirect files correctly at the end.
refactor the do-* tests to be usable in cooperation with other modules
that want similar things, like we did in ruby and cmake.

(checked through a bulk-build, ok rpointel@)
2013-06-28 10:27:49 +00:00
sthen a976c84603 Don't lose the flavour extension when overwriting FULLPKGNAME for python3
flavours. (Only affects the, possibly currently non-existent, case where a
port has python3 and another flavour). Switch to ?= rather than = to permit
further overriding in the port Makefile. Discussed with many, no change
to INDEX, looks good to fgsch@ rpointel@.
2013-06-05 11:11:38 +00:00
fgsch 618f6d7e09 GC python 2.5. Thanks to zhuk who made this possible. 2013-06-04 08:02:20 +00:00
ajacoutot 832f214f93 3.2 -> 3.3 2013-05-30 14:46:31 +00:00
ajacoutot 31714330cd Bump the default python3 version to 3.3.
Successfully tested with gnome which is the biggest consumer of py3 -- any
regression, please let me know.

discussed with fgsch@ rpointel@ sthen@ jasper@ landry@ zhuk@
2013-05-30 13:08:59 +00:00
fgsch f2b172b030 make _MODPY_CMD external (remove underscore).
sthen@ ok
2013-05-13 19:06:45 +00:00
ajacoutot 091f0bba3b Since we can override MODPY_VERSION, no need to override
MODPY_DEFAULT_VERSION_3 as well.

ok fgsch@
2013-05-10 06:07:53 +00:00
fgsch 88d0fdad29 allow to override the default python 3 version.
needed by and ok ajacoutot@
2013-05-03 08:51:05 +00:00
sthen 114602ef6e revert last MODPY_PY_PREFIX change in SUBST_VARS, it prevents update-plist from
replacing share/doc/py-something with share/doc/${MODPY_PY_PREFIX}-something.
requested by fgsch@
2013-04-30 17:20:58 +00:00
fgsch 9da5564087 Handle upcoming 3.3 directory 2013-04-28 01:00:33 +00:00
sthen 378e074c6d use ^ before MODPY_PREFIX in SUBST_VARS to reduce bogus subst's (this is
only used by "make plist" and doesn't chnage packages). ok fgsch rpointel aja
2013-04-04 12:36:43 +00:00
fgsch d63ebc46ea expose _MODPY_BIN_ADJ (remove underscore) 2013-04-01 16:49:53 +00:00
espie 0662a4e9d6 PERMIT_* / REGRESS->TEST sweep 2013-03-11 11:20:26 +00:00
sthen f5a323c546 Don't use ${FLAVOR:L}, we only support lower-case flavours now.
OK ajacoutot@ espie@
2013-02-09 14:49:50 +00:00
fgsch 5401d8078b - expose _MODPY_MAJOR_VERSION (remove underscore)
- use :R to extract the major
- remove unneeded check

rpointel@ ok. while here add some spaces for consistency with the rest of
the file.
2012-12-21 18:19:38 +00:00
rpointel 1305786da7 remade the MODPY_DEFAULT_VERSION_2 and MODPY_DEFAULT_VERSION_3 external variables,
used in few ports...
spotted by jasper@ and Alexandr Shadchin.
2012-10-14 17:26:12 +00:00
rpointel 32dc0089f4 begin to clean python.port.mk by making these variables internal:
_MODPY_DEFAULT_VERSION_2
_MODPY_DEFAULT_VERSION_3
_MODPY_PRE_BUILD_STEPS
_MODPY_BIN_ADJ
ok sthen@ reads good espie@.
2012-10-12 19:57:46 +00:00
espie 6857535880 consistent style
okay rpointel@
2012-08-28 19:10:45 +00:00
rpointel 9f5c81ba5f needed for the python 3.2.3 update (to understand the splendid pep3147...)
ok landry@.
2012-06-27 18:56:26 +00:00
ajacoutot ddd9aa6a1c Add ac_cv_prog_PYTHON in CONFIGURE_ENV. This is needed because sometimes
configure scripts look for hardcoded version of python without taking
into consideration the PYTHON variable we already export.

ok fgsch@
2012-04-03 09:21:42 +00:00
ajacoutot 258288151f Only set SHARED_ONLY if python is needed at build and/or run time and
not just when we use the python MODULE.

ok rpointel@ fgsch@
2012-03-31 08:53:57 +00:00
fgsch 7cf02618d6 RIP python2.4.
jasper@ ok
2011-12-20 13:08:06 +00:00
rpointel 650dd13bbf Permit to build Python 2 and Python 3 ports.
ok fgsch@.
2011-12-14 20:31:28 +00:00
pascal a8274ecebc Fix MODPY_INCDIR with python3.
ok rpointel@
2011-11-29 17:29:37 +00:00
espie 009a1a9376 avoid weird error message if something defines MODPY_VERSION to a bad value,
by making sure we're a valid value before we try a numerical test.
2011-10-17 13:55:24 +00:00
fgsch df0099aa3e handle py3-distribute requirement correctly.
sthen@ rpointel@ ok.
2011-10-03 13:54:12 +00:00
sthen 119b2307f8 let Python use PKGSPEC infrastructure, discussed with and variable name
suggestion from fgsch@
2011-09-27 21:27:36 +00:00
sthen 1506610460 reinstate MODPYSPEC and restore MODPY_RUN_DEPENDS to previous
same diff/ok fgsch@
2011-09-22 09:44:40 +00:00
fgsch f07def33ab Merge in support for python3.
remi@ sthen@ ok
2011-09-21 14:37:28 +00:00
rpointel f280fddcc0 Switch default to python 2.7.
Discussed and ok from many. Bumps will follow.
"go go go" from jasper@.
2011-06-08 17:28:14 +00:00
rpointel c25fe689b1 Prepare import of python 2.7.
(Not linked to the build, and not made the default python).
ok landry@, fgsch@.
2011-04-24 09:19:01 +00:00
espie 88d20077a4 new depends 2010-11-17 08:05:12 +00:00
ajacoutot 39407c46c2 Add a MODPY_BIN_ADJ variable for python shebang substitution. It will
automatically change from scripts from using /usr/bin/env python or
/usr/bin/python to using #!${MODPY_BIN} .
Add a MODPY_ADJ_FILES in which you can put the files that are under
${WRKSRC} you want to subtitute the shebang.
e.g.
MODPY_ADJ_FILES= setup.py bin/foobar.py.in


Some input from djm@
"sane idea to me" jasper, ok sthen@
2010-10-26 14:29:26 +00:00
sthen 3b2bbaacc0 Add MODPY_WANTLIB, adjust MODPY_LIB_DEPENDS to new-style LIB_DEPENDS,
update all ports to match. Plists don't change -> no bump.
Looks ok to jasper.
2010-10-24 15:53:55 +00:00