Commit Graph

540 Commits

Author SHA1 Message Date
sthen
10d9780653 Drop the post-install "if you want to use this as your default system
Python" messages, Python 2 development has finished so this is not a
sensible option to use as default.

(It is still kept in the ports tree for now, as some important software
has not been updated to use Python 3).

ok tracey aja mariani rpointel

From https://www.python.org/doc/sunset-python-2/, "We are volunteers who
make and take care of the Python programming language. We have decided
that January 1, 2020, was the day that we sunset Python 2. That means
that we will not improve it anymore after that day, even if someone
finds a security problem in it. You should upgrade to Python 3 as soon
as you can."
2020-04-24 11:01:26 +00:00
rpointel
75bb50423a update python to 2.7.18: the last release of Python 2.
tested in a bulk build by naddy@, thanks.
2020-04-23 07:56:01 +00:00
rpointel
5e65a6488f upadte python to 3.8.2.
ok kmos@.
2020-04-07 06:51:25 +00:00
kmos
6b341adec8 Update Python 3.7 to 3.7.7
Run through a bulk on sparc64 without issue.

Clean up PLISTs while here. Move many test bits to the -test subpackage.

ok rpointel@ (maintainer)
2020-03-30 14:55:16 +00:00
sthen
8aff5b1d44 remove 2 bogus conflict markers 2020-02-11 20:43:11 +00:00
sthen
ef465900cd Fix python upgrade paths, problem reported by Mikolaj Kucharski and I had
already run into it myself. Add comments to hopefully make it simpler
and more understandable for future changes to the default version.
Zero feedback but tests well here, committing before I forget about
it because people will run into this with 6.7.
2020-02-11 11:45:31 +00:00
kmos
24809676f3 Update to Python 3.7.6
ok rpointel@ (maintainer)
2019-12-28 18:35:39 +00:00
kmos
2e079c768c Update to Python 3.8.1
ok rpointel@ (maintainer)
2019-12-28 18:34:39 +00:00
kmos
b3d030b3fc Adjust python.port.mk to not have the m suffix on the library for 3.8+
(Effectively we only keep it for 3.7).

ok kn
2019-12-19 02:42:46 +00:00
sthen
bc02baacfb add @pkgpath markers to handle updating old 3.6 packages to 3.7,
missed when removing 3.6
2019-12-11 19:55:40 +00:00
pamela
94e1db4e68 regenerate patches
OK sthen@
2019-12-06 21:04:12 +00:00
pamela
475708fabd regenerate patches
OK sthen@
2019-12-06 21:03:09 +00:00
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