[INSTRM-1657] Fix pfsinstall, etc. in the modern world. Created: 30/Jun/22  Updated: 21/Sep/24

Status: Open
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: cloomis Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to INSTRM-1999 Assure correct group ownership/permis... Done
relates to INSTRM-1467 pfs_utils installation is an egg Open
relates to INSTRM-1545 fix gen2Actor and sunssActor eups ins... Open
relates to INSTRM-2310 Update ICS python environment to 3.11... Done

 Description   

With python 3.9, something changed with distutils/setuptools which breaks installation of even the simplest MHS package. Specifically, after pfsinstall ics_xcuActor:2.0.5, we get an empty egg. Bad enough that we get any egg. See below.

For pure-python packages, installing with an older conda is a workaround.

cloomis@tron:ics_xcuActor (master *=)$ ls -lR /software/mhs/products/Linux64/ics_xcuActor/2.0.5
/software/mhs/products/Linux64/ics_xcuActor/2.0.5:
total 3
drwxrwsr-x 3 cloomis pfs  3 Jun 29 17:21 lib
lrwxrwxrwx 1 cloomis pfs 10 Jun 29 17:21 python -> lib/python
drwxrwsr-x 2 cloomis pfs  3 Jun 29 17:21 ups

/software/mhs/products/Linux64/ics_xcuActor/2.0.5/lib:
total 9
drwxrwsr-x 2 cloomis pfs 5 Jun 29 17:21 python

/software/mhs/products/Linux64/ics_xcuActor/2.0.5/lib/python:
total 159
-rw-rw-r-- 1 cloomis pfs     27 Jun 29 17:21 easy-install.pth
-rw-rw-r-- 1 cloomis pfs     27 Jun 29 17:21 easy-install.pth~
-rw-rw-r-- 1 cloomis pfs 155446 Jun 29 17:21 xcuActor-0.0.0-py3.9.egg

/software/mhs/products/Linux64/ics_xcuActor/2.0.5/ups:
total 5
-rw-rw-r-- 1 cloomis pfs 562 Jun 29 17:21 ics_xcuActor.table


 Comments   
Comment by cloomis [ 18/Dec/23 ]

Bump. With 3.11, pfsinstall still works, but complains:

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************
Generated at Thu Apr 10 03:28:22 JST 2025 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.