Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Aug 2020 21:45:44 +0400
From:      Gleb Popov <arrowd@freebsd.org>
To:        python@freebsd.org
Subject:   How to package .pyc files
Message-ID:  <CALH631m7qWS7aiLhi8kFeZx0pOTU7KFjy8CHoe1VJ2zqvtdZWA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello. I'm fiddling with the devel/mercurial port (
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242463 ). The current
Makefile results in

Error: Orphaned: %%PYTHON_SITELIBDIR%%/mercurial/__modulepolicy__.py
Error: Orphaned:
%%PYTHON_SITELIBDIR%%/mercurial/__pycache__/__modulepolicy__.cpython-37.opt-1.pyc
Error: Orphaned:
%%PYTHON_SITELIBDIR%%/mercurial/__pycache__/__modulepolicy__.cpython-37.pyc

errors. However, adding these files into pkg-plist seems a bit hard - it
requires %%PYTHON_VER%% subst and a special treatment for python2 case.
Which made me wonder - should these files be packaged at all? If yes, maybe
there is some simple solution I'm missing?

Thanks in advance.



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