Opened 3 years ago

Last modified 3 years ago

#63027 closed defect

pyviz_comms installation incorrect — at Initial Version

Reported by: jolivetr Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc:
Port: py-pyviz_comms

Description

Dear,

It seems that when I install pyviz_comms for python38, the installation does not behave so that the import will be successful afterwards. The files copied in the site-packages directory are different from those copied when installing it with pip (for instance).

Some json files are missing and the import is not successful (IOError reports missing packages.json file). When building with pip, the python import is fine and the json files are present where they should be.

Normal install gives:

ls -ltr

/opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyviz_comms
total 64
-rw-r--r-- 1 root wheel 18962 Jun 4 22:59 init.py
-rw-r--r-- 1 root wheel 439 Jun 4 22:59 _version.py
-rw-r--r-- 1 root wheel 4976 Jun 4 22:59 notebook.js
drwxr-xr-x 4 root wheel 128 Jun 4 22:59 labextension/
drwxr-xr-x 4 root wheel 128 Jun 4 22:59 pycache/

While the current macports install gives:

ls -ltr /opt/local/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pyviz_comms

total 24
-rw-r--r-- 1 root wheel 439 Dec 28 00:52 _version.py
-rw-r--r-- 1 root wheel 18962 Dec 28 00:52 init.py
drwxr-xr-x 4 root wheel 128 Jun 4 23:09 pycache/

I am not sure how to solve that problem... We cannot force macports to use pip, right? That would defeat the purpose... I worked around the problem by installing what I need and replacing the files with what is installed by pip, but that's a dirty workaround... Any idea?

Cheers, R

Change History (0)

Note: See TracTickets for help on using tickets.