Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jan 2016 17:13:42 +0200
From:      clutton <clutton@zoho.com>
To:        python <python@FreeBSD.org>
Subject:   pkg-plist %%PYVER%%.%%PYOEXTENSION%% handling. patch included, feedback needed
Message-ID:  <1451920422.31882.24.camel@zoho.com>

next in thread | raw e-mail | index | archive | help

--=-BKdRoLPi/XOknWUxJKkx
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

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.

--=-BKdRoLPi/XOknWUxJKkx
Content-Disposition: attachment; filename="python.mk.diff"
Content-Type: text/x-patch; name="python.mk.diff"; charset="UTF-8"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL01rL1VzZXMvcHl0aG9uLm1rIGIvTWsvVXNlcy9weXRob24ubWsKaW5kZXgg
YTVlYmNlMC4uMTg4NjkxOSAxMDA2NDQKLS0tIGEvTWsvVXNlcy9weXRob24ubWsKKysrIGIvTWsv
VXNlcy9weXRob24ubWsKQEAgLTE5Myw2ICsxOTMsOCBAQAogIwlQWVRIT05fU0lURUxJQkRJUj0k
e1BZVEhPTlBSRUZJWF9TSVRFTElCRElSOlM7JHtQUkVGSVh9Lzs7fQogIwlQWVRIT05fVkVSU0lP
Tj0ke1BZVEhPTl9WRVJTSU9OfQogIwlQWVRIT05fVkVSPSR7UFlUSE9OX1ZFUn0KKyMJUFlNQUdJ
Q1RBRz0ke1BZTUFHSUN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F0gPSAxfTsgc3ViKC9cLnB5YyQkLywgICIuIiBtdCAiJiIpOyBzdWIoL1wucHlvJCQvLCAi
LiIgbXQgIi4iIHB5byk7IHN1YigvW15cL10rXC5weVtjb10kJC8sIHBjICIvJiIpOyBwcmludDsg
bmV4dH0gXApAQCAtNTMwLDcgKzUzNCw3IEBAIGFkZC1wbGlzdC1wb3N0OgogCQkvXkBkaXJybXRy
eSAvIHtkID0gc3Vic3RyKCQkMCwgMTEpOyBpZiAoZCBpbiBkaXJzKSB7cHJpbnQgJCQwICIvIiBw
Y307IHByaW50ICQkMDsgbmV4dH0gXAogCQl7cHJpbnR9IFwKIAkJJyBcCi0JCXBjPSJfX3B5Y2Fj
aGVfXyIgbXQ9IiQkKCR7UFlNQUdJQ1RBR30pIiBweW89IiR7UFlPRVhURU5TSU9OfSIgXAorCQlw
Yz0iX19weWNhY2hlX18iIG10PSIke1BZTUFHSUNUQUd9IiBweW89IiR7UFlPRVhURU5TSU9OfSIg
XAogCQkke1RNUFBMSVNUfSA+ICR7VE1QUExJU1R9LnB5Y190bXAKIAlAJHtNVn0gJHtUTVBQTElT
VH0ucHljX3RtcCAke1RNUFBMSVNUfQogLmVuZGlmICMgJHtQWVRIT05fUkVMfSA+PSAzMjAwICYm
IGRlZmluZWQoX1BZVEhPTl9GRUFUVVJFX1BZM0tQTElTVCkK


--=-BKdRoLPi/XOknWUxJKkx--





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1451920422.31882.24.camel>