kmos
3c8fb63ad4
Add the necessary bits in python.port.mk to recognize 3.9 as a valid
...
Python version and hook Python 3.9.0 up to the build
2020-10-05 20:51:18 +00:00
sthen
f6d412fc07
switch python 3 default version from 3.7.x to 3.8.x, ok kmos@ rpointel@
2020-07-03 21:10:55 +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
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
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
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
kmos
a47efc0214
Retire Python 3.6
...
ok sthen
2019-10-18 13:08:05 +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
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
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
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
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
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
martijn
65599bc7ce
/MODPY_DISTUTILS_INSTALL/s/LOCALBASE/TRUEPREFIX/
...
Triggered by remark of sthen@.
OK sthen@, rpointel@
2018-12-04 05:57:31 +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
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
danj
3c47b441c2
Bump setuptools requirement
...
ok sthen@
2018-04-24 09:40:51 +00:00
landry
7b5cbbc044
Default MODPY_DISTUTILS_BUILD to build in ${WRKBUILD} instead of
...
${WRKSRC} - this way python ports using distutils respects
SEPARATE_BUILD.
From Klemens Nanni, tested in an amd64 bulk, ok sthen@ rpointel@
2018-01-29 20:49:24 +00:00
landry
635c433e2b
Retire python 3.4 and 3.5, python 3.6 is the default python3 version
...
since 7 months, and nothing uses those anymore.
ok rpointel@ (MAINTAINER) ajacoutot@
2017-07-08 08:28:00 +00:00
ajacoutot
4f8b9a547c
Only add ac_cv_prog_PYTHON and ac_cv_path_PYTHON to CONFIGURE_ENV when
...
CONFIGURE_STYLE is gnu (or autoconf). It makes no sense for other styles.
survived a bulk
2017-04-19 07:41:00 +00:00
landry
e22346e653
Switch MODPY_DEFAULT_VERSION_3 to 3.6, diff from rpointel@, testing and
...
fixes by shadchin@, bulk build by me, support from danj@, no objection
from naddy@
All 250-something ports depending on python3 will be bumped in a few.
Fasten your seatbelts.
2017-01-03 19:12:42 +00:00
shadchin
023286d19f
Add a MODPY_PYOEXTENSION variable.
...
Beginning with Python 3.5 .pyo files are no longer used and
have been replaced by a more flexible scheme that includes
the optimization level explicitly in .pyc name (See PEP-488).
2017-01-03 18:54:48 +00:00
rpointel
6fc508ff23
add the possibility to use 3.6 version for a port.
2016-12-26 19:48:47 +00:00
jca
6c5bba2178
Pass ALL_TEST_ENV, not just MAKE_ENV, to the default target.
...
ok shadchin@
2016-11-07 16:42:08 +00:00
jasper
894d70c203
wrap overly-long SUBST_VARS line
2016-10-31 11:08:16 +00:00
danj
94e1a61724
Update MODPY_SETUPUTILS_DEPEND after py-setuptools update
...
This commit also introduces MODPY_ABI_TAG for when, an ABI tag is also
used for names of compiled extensions (idea and name from sthen@)
ok sthen@
2016-10-29 18:25:01 +00:00
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