pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Can't quite figure out how to use logic from lang/python/plist-python.awk



Hi, everyone!

I am struggling with the wip/py-conan's PLIST when built against python3.

I kind of understand the logic in lang/python/plist-python.awk, but I don't know the pkgsrc infrastructure overall so I am not sure how this awk is used.

I would appreciate if anyone could point out where my understanding is incorrect.

Currently when I build wip/py-conan with PYTHON_VERSION_DEFAULT=36 I see
the following error:

ERROR: ************************************************************
ERROR: The following files are in the PLIST but not in /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg: ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/__init__.pyc ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/__init__.pyo ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/vs_toolset_compatible_test.pyc ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/vs_toolset_compatible_test.pyo
ERROR: ************************************************************
ERROR: The following files are in /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg but not in the PLIST: ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/__pycache__/__init__.cpython-36.opt-1.pyc ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/__pycache__/__init__.cpython-36.pyc ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/__pycache__/vs_toolset_compatible_test.cpython-36.opt-1.pyc ERROR: /var/tmp/pkgsrc-obj/wip/py-conan/work/.destdir/pkg/lib/python3.6/site-packages/conans/test/unittests/model/info/__pycache__/vs_toolset_compatible_test.cpython-36.pyc

If I prefix ${PYSITELIB}/conans/test/unittests/model/info/__init__.py
(along with .pyc & .pyo) with ${PLIST.py2x} the first part of the warning above disappears.

However, adding ${PLIST.py3x}${PYSITELIB}/conans/test/unittests/model/info/__init__.py (I tried adding .pyc and .pyo enrties as well) to PLIST doesn't fix the second part.

I see that it works exactly as expected in devel/py-future/PLIST, but I can't figure
what's wrong my PLIST.

I am doing my best to trace where exactly it is going wrong, but maybe somebody more experienced can already spot the problem or direct me to how to debug this awk scripts easily?

Thanks in advance.

--
Aleksej Lebedev


Home | Main Index | Thread Index | Old Index