Bug 263218

Summary: math/py-pandas: 'make install' breaks with py37
Product: Ports & Packages Reporter: John Hein <jcfyecrayz>
Component: Individual Port(s)Assignee: Po-Chuan Hsieh <sunpoet>
Status: Closed FIXED    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (python)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description John Hein 2022-04-11 12:01:10 UTC
If the default python version is set to 3.7, 'make install' breaks after ports e9d61783dccb63ff578fe7d71bac543b399b5fb8 (Mar 8, 2022).  'make check-plist' also breaks for the same reason, which is that pkg-plist uses PYTHON_EXT_SUFFIX

The issue is that the .pyc files are created as *.cpython-37.*.pyc (similar to *.cpython-38.*.pyc for py38 builds) and PYTHON_EXT_SUFFIX is empty for < py38.  And pkg-plist now uses PYTHON_EXT_SUFFIX for the .pyc files.



===>   Registering installation for py37-pandas-1.3.5,1
pkg-static: Unable to access file /wrkdirs/usr/ports/math/py-pandas/work-py37/stage/usr/local/lib/python3.7/site-packages/pandas/__pycache__/__init__.opt-1.pyc:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/math/py-pandas/work-py37/stage/usr/local/lib/python3.7/site-packages/pandas/__pycache__/__init__.pyc:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/math/py-pandas/work-py37/stage/usr/local/lib/python3.7/site-packages/pandas/__pycache__/_typing.opt-1.pyc:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/math/py-pandas/work-py37/stage/usr/local/lib/python3.7/site-packages/pandas/__pycache__/_typing.pyc:No such file or directory
pkg-static: Unable to access file /wrkdirs/usr/ports/math/py-pandas/work-py37/stage/usr/local/lib/python3.7/site-packages/pandas/__pycache__/_version.opt-1.pyc:No such file or directory
 .
 .
Comment 1 commit-hook freebsd_committer freebsd_triage 2022-04-16 04:25:53 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7ad549afde193b795d59d6148462c970e0b28667

commit 7ad549afde193b795d59d6148462c970e0b28667
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-04-16 04:15:31 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-04-16 04:19:53 +0000

    math/py-pandas: Fix PLIST for Python 3.7

    PR:             263218
    Reported by:    John Hein <jcfyecrayz@liamekaens.com>

 math/py-pandas/pkg-plist | 5064 +++++++++++++++++++++++-----------------------
 1 file changed, 2532 insertions(+), 2532 deletions(-)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2022-04-16 04:48:34 UTC
Committed. Thanks!