pkg-plist %%PYVER%%.%%PYOEXTENSION%% handling. patch included, feedback needed
clutton
clutton at zoho.com
Mon Jan 4 15:14:04 UTC 2016
Hi list.
As I can see there are two ways of doing pkg-plist routine.
For pkg-plist which was made for python2 just including USE_PYTHON=
py3kplist would do the trick.
For new python3 ports it's not so straight forward, and when they don't
use setup.py conventions people usually do something like this:
.if ${PYTHON_REL} < 3500
PYOEXTENSION= pyo
.else
PYOEXTENSION= opt-1.pyc
.endif
PLIST_SUB+= PYOEXTENSION=${PYOEXTENSION} \
PYVER=${PYTHON_VER:S/.//}
What a shame!!! Looks like doing twice the same task. I've prepared the
patch and would like to have a feedback before/if it'll go as a ticket.
Since currently it's a hack and what patch is doing is making it
absolute.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python.mk.diff
Type: text/x-patch
Size: 1632 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-python/attachments/20160104/b476c40b/attachment.bin>
More information about the freebsd-python
mailing list