528 Commits

Author SHA1 Message Date
sthen
a69dae938f merge 'if ${MODPY_VERSION} == "2.7"' block into the above 'if
${MODPY_MAJOR_VERSION} == 2' block, no need for it to be separate as we
only support one 2.x version now
2019-11-19 11:34:55 +00:00
ajacoutot
8e232da1bf Provide all python debug packages. 2019-11-11 17:47:41 +00:00
ajacoutot
8fab1b003a Update now that DEBUG_PACKAGES can cope with hard links. 2019-11-10 21:06:47 +00:00
ajacoutot
3ff04faf71 More automatish debug. 2019-11-10 18:34:06 +00:00
sthen
3a84181b10 no need for DEBUG_CONFIGURE_ARGS with bsd.port.mk 1.1484 2019-11-10 11:53:14 +00:00
pirofti
7b3179996d Add debug packages to python -main and -gdbm.
This show-cases the new debug infrastructure created by Marc and I.

OK robert@, espie@
2019-11-09 17:28:58 +00:00
kmos
b0e3d2d064 Add Python 3.8.0 to the tree. The default python3 version will remain
3.7.5 for now, but this will allow easier testing for the eventual
switchover.

Input from landry and sthen

ok sthen
2019-11-07 16:14:09 +00:00
jca
428d69794f Unbreak numpy after the python-2.7.17 update
python cflags are now being honored which means gcc now pukes on the
bogus -OPT:Olimit=0 present in python2-config --cflags.  Force-disable
the bogus use of -OPT:Olimit=0.  ok kmos@ sthen@
2019-11-03 08:55:33 +00:00
sthen
33dd92ca69 this should have been part of rpointel's python 2.7.17 update 2019-11-01 21:43:24 +00:00
rpointel
b5e9f7f1fb update python to 2.7.17.
ok kmos@.
2019-11-01 17:40:08 +00:00
kmos
a47efc0214 Retire Python 3.6
ok sthen
2019-10-18 13:08:05 +00:00
rpointel
b61ef5df7b update python to 3.7.5.
ok kmos@
2019-10-18 04:47:27 +00:00
kmos
2b78de48ba Update to Python 3.6.9
Keep this for 6.6, we'll look at retiring it post-release

OK sthen
2019-09-30 21:05:56 +00:00
kmos
0f53fcb5b8 Change indentiation of a couple of .if statements to match
the style of the rest of the section and make it easier to see
which .endif belongs to which .if

ok sthen
2019-09-25 14:34:13 +00:00
rpointel
87d92307f8 update python 3 to 3.7.4.
tested in a bulk build on amd64 by naddy@ (thanks).
2019-07-13 06:48:16 +00:00
sthen
3318ced016 replace simple PERMIT_PACKAGE_CDROM=Yes with PERMIT_PACKAGE=Yes 2019-07-12 20:46:54 +00:00
sthen
9765018ea7 change -S MODPY_ABI3SO to -I MODPY_ABI3SO in python.port.mk's UPDATE_PLIST_ARGS;
the former is incorrect as the ".abi3" string is in the middle of the path, not
the end. ok espie@ jca@
2019-06-24 14:25:54 +00:00
naddy
ebf751b927 Update gettext to 0.20.1.
Follow the upstream recommendations for packagers and switch to
multi-packages:
devel/gettext       -> devel/gettext,-runtime
devel/gettext-tools -> devel/gettext,-tools
(new)                  devel/gettext,-textstyle
2019-05-20 22:15:00 +00:00
espie
8510378023 make use of new update-plist options (make sure your update-plist is current!) 2019-05-18 18:56:45 +00:00
sthen
cc56f40ff2 check that FLAVORS is defined before using it in .if; problem with "make
plist" following prior commit reported by juanfra@ with devel/mercurial.
2019-05-18 00:33:52 +00:00
espie
70e3a42d1c It's well-known that update-plist has a hard time on py2/py3 ports
when run outside the py3 flavor, so gently remind the porters.

okay sthen@
2019-05-17 13:27:03 +00:00
semarie
1bc740e800 set MODPY_TESTDEP dependent to NO_TEST.
it will avoid populate TEST_DEPENDS when the port has explicitly declared there is no test.

ok kmos@
2019-05-16 18:15:40 +00:00
kmos
c45cd79fc7 Add RUN_DEPENDS to TEST_DEPENDS automatically for ports using the
lang/python port module. I've not yet come up with a port that
would not need this and one can always set MODPY_TESTDEP to "no"
to prevent the module from touching TEST_DEPENDS.

Idea from afresh1 who pointed out the cpan module already does this.

aja "I support this move."

OK sthen@
2019-05-15 12:04:34 +00:00
sthen
228a5f9ea0 fix @pkgpath markers;
- there was never a lang/python3/3.6 (@pkgpath marker for this is present in
current 3.6 plists), python3/3.x was only used for 3.2, so remove these.

- they should probably have originally used "@pkgpath lang/python/3.5" to
trigger updates from 3.5 when 3.5 was removed, but no point adding those
to 3.6 now that 3.7 is the default version. so add @pkgpath lang/python/3.5
markers in 3.7 PLISTs, fixing the upgrade path if old versions were present
(there was previously nothing to trigger 3.5 being removed/updated so
stray packages would be left around).

problem reported by Laurie Tratt
2019-05-10 12:01:55 +00:00
sthen
3543bc1c35 Switch the default python3 version (used to build all py3 ports) from
3.6.8 to 3.7.3. ok landry@ danj@ kmos@ rpointel@
2019-04-27 21:28:30 +00:00
kmos
d21568e6bb Landry found a case where putting the subdirectory in question into
MODPY_TEST_ARGS was not enough to get the tests to run using
MODPY_PYTEST, geo/py-proj.

This adds MODPY_TEST_DIR, which defaults to WRKSRC as is normal, to
allow overriding the subdirectory that tests run in. This isn't
specific to MODPY_PYTEST, it will work for PY_SETUPTOOLS tests also.

OK landry@ sthen@
2019-04-23 12:30:47 +00:00
ajacoutot
8d092f421f Missed bump. 2019-04-22 10:09:37 +00:00
sthen
141f6b308e import python 3.7.3, ok rpointel@ kmos@
at this point, only python itself will be built for 3.7.x; modules are still
all built against 3.6.
2019-04-21 09:33:32 +00:00
sthen
c3e90e6a46 python tweaks;
- sync WANTLIB
- use do-gen instead of post-patch for the "subst and regen
autoconf files" target
- ALL_TARGET needs setting differently between 2.7 and 3.x;
rather than checking against 3.6 for "all", check against 2.7
for "all ./Lib/plat-openbsd6". needed for newer 3.x.
2019-04-21 09:32:19 +00:00
rpointel
99f091b273 update Python to 2.7.16.
tested by sthen@ and kmos@ (thanks).
2019-04-03 05:23:40 +00:00
remi
c9d88b3d88 I hope that now I got the indentation as intended ;-) 2019-03-20 22:45:26 +00:00
remi
91fe846cf1 fix indentation 2019-03-20 22:40:00 +00:00
remi
7da06b848c Add MODPY_PYTEST.
With this all the python ports using pytest do not need to setup their
own do-test taret. Instead "MODPY_PYTEST = Yes" does the job.

from Kurt Mosiejczuk
ok kn@
2019-03-20 22:19:53 +00:00
remi
25abb64835 Add MODPY_TEST_LOCALE. In general python tests want an UTF-8 locale.
If needed this allows to overwrite it.

I looks like python preferes C.UTF-8. But Ingo pointed out that on
OpenBSD en_US.UTF-8 is prefered and the former is just a link to the later.

from Kurt Mosiejczuk
ok sthen@
2019-03-18 21:30:48 +00:00
remi
65429f7c8f Add MODPY_TESTDEP and MODPY_TEST_DEPENDS. In a future step this will
allow to automatically add deps for pytest to TEST_DEPENDS.

from Kurt Mosiejczuk
ok sthen@
2019-03-18 21:19:18 +00:00
rpointel
e5ab4e114f fix problem with PLIST: some noise when installing and then uninstalling unflavored python3.
spotted by tb@, fix from me, ok sthen@.
2019-02-28 09:11:28 +00:00
rpointel
d095232e95 update python to 3.6.8.
tested in a bulk build by naddy (thanks!).
2019-01-07 06:43:00 +00:00
martijn
65599bc7ce /MODPY_DISTUTILS_INSTALL/s/LOCALBASE/TRUEPREFIX/
Triggered by remark of sthen@.

OK sthen@, rpointel@
2018-12-04 05:57:31 +00:00
danj
85e27d6f74 regen patch 2018-11-09 19:55:39 +00:00
rpointel
c104026cfa update to python 3.6.7.
tested in a bulk build by naddy@ (thanks).
2018-11-03 18:56:32 +00:00
sthen
2a83c63018 add MODGCC4_CPPLIBDEP to LIB_DEPENDS-main to unbreak !clang arches -
on clang arches this is a noop, on !clang arches this gives a path to
the estdc++ WANTLIB. needed because this is a multi-package port and
LIB_DEPENDS-main doesn't include the default LIB_DEPENDS added by
gcc4.port.mk.
2018-10-31 23:48:19 +00:00
sthen
25f0e460f2 Add COMPILER lines to c++ ports which currently use the default. Adjust
some existing COMPILER lines with arch restrictions etc. In the usual
case this is now using "COMPILER = base-clang ports-gcc base-gcc" on
ports with c++ libraries in WANTLIB.

This is basically intended to be a noop on architectures using clang
as the system compiler, but help with other architectures where we
currently have many ports knocked out due to building with an unsuitable
compiler -

- some ports require c++11/newer so the GCC version in base that is used
on these archirtectures is too old.

- some ports have conflicts where an executable is built with one compiler
(e.g. gcc from base) but a library dependency is built with a different
one (e.g. gcc from ports), resulted in mixing incompatible libraries in the
same address space.

devel/gmp is intentionally skipped as it's on the path to building gcc -
the c++ library there is unused in ports (and not built by default upstream)
so intending to disable building gmpcxx in a future commit.
2018-10-24 14:27:57 +00:00
danj
7d569fc533 Tweak MASTER_SITES and HOMEPAGE
Switch to https and remove dead mirror.
Noticed by rsadowski@, ok rpointel@
2018-09-18 16:43:12 +00:00
landry
075b2f0d05 Build python 3.6 with --enable-loadable-sqlite-extensions.
This unbreaks the following testcase, and fixes spatialite databases in QGIS.

import sqlite3
con = sqlite3.connect(":memory:")
con.enable_load_extension(True)

See https://trac.macports.org/ticket/49317 &
https://riccardo.forina.me/spatialite-for-python-does-not-work-on-osx/
for similar fixes on OSX.

went in a bulk build without fallout, sounds good to rpointel@
2018-08-30 16:22:49 +00:00
danj
a00bb2a8a9 regen patches as some need fuzzing
ok tb
2018-08-09 17:39:27 +00:00
espie
406d092c5c make the BUILD_DEPEND mechanism on python more flexible, and less
surprising.

It's always controlled by MODPY_BUILDDEP, which defaults to Yes
usually, unless NO_BUILD=Yes is set, and then it defaults to No.

this caters to matthieu's xcbgen port

okay aja@, rpointel@
2018-07-24 12:10:10 +00:00
rpointel
52492d9dd4 update python to 3.6.6.
tested in a bulk build by naddy@ (thanks).
release notes: https://docs.python.org/3.6/whatsnew/changelog.html#python-3-6-6-final
2018-07-02 04:56:07 +00:00
espie
6c9bec5fc3 python is the first module to gain explicit update-plist support, do not
try to add those substs in the middle of words
2018-05-12 10:47:36 +00:00
rpointel
b0ffc09fc2 update python 2.7 to 2.7.15.
tested in a bulk by naddy@ (thanks).
ok jasper@.
2018-05-03 20:09:25 +00:00
danj
3c47b441c2 Bump setuptools requirement
ok sthen@
2018-04-24 09:40:51 +00:00