#57992 closed request (fixed)

HoloViews: Port Request

Reported by: nhchan Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-holoviews

Description

HoloViews is a powerful visualisation package for python that works with matplotlib, bokeh, pandas, seaborn, etc.

It requires numpy and param(https://param.pyviz.org). The former is already on MacPorts, but I am unsure about the latter.

Currently, holoviews is available on pip, but having it on MacPorts would be very nice.

Thank you!

Attachments (4)

Portfile (1.5 KB) - added by Schamschula (Marius Schamschula) 21 months ago.
py-param Portfile
Portfile.2 (1.2 KB) - added by Schamschula (Marius Schamschula) 21 months ago.
py-pyviz_comms Portfile
Portfile.3 (1.6 KB) - added by Schamschula (Marius Schamschula) 21 months ago.
holoviews Portfile
Portfile.4 (1.5 KB) - added by mf2k (Frank Schima) 21 months ago.
Fixed py-param Portfile. Please test if this works for you like it does for me.

Download all attachments as: .zip

Change History (12)

comment:1 Changed 21 months ago by mf2k (Frank Schima)

Port: py-holoviews added

comment:2 Changed 21 months ago by mf2k (Frank Schima)

It looks like we also need to create a port for py-param.

comment:3 Changed 21 months ago by Schamschula (Marius Schamschula)

Unfortunately py-param and py-pyviz_comms have an issue adding the correct version name to the Framework. I get some thing like

running install_egg_info
Copying param.egg-info to /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_python_py-param/py37-param/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/param-None-py3.7.egg-info
running install_scripts
/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/setuptools/dist.py:484: UserWarning: The version specified ('None') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  "details." % self.metadata.version

during destroot.

The param-None-py3.7.egg-info file should really be called param-1.8.1-py3.7.egg-info

I tried several ways of overriding the builtin mechanism from https://github.com/pyviz/autover - to no avail.

comment:4 Changed 21 months ago by mf2k (Frank Schima)

Can you rename it in pre-destroot? Can you post your Portfile?

Changed 21 months ago by Schamschula (Marius Schamschula)

Attachment: Portfile added

py-param Portfile

Changed 21 months ago by Schamschula (Marius Schamschula)

Attachment: Portfile.2 added

py-pyviz_comms Portfile

comment:5 Changed 21 months ago by Schamschula (Marius Schamschula)

The py-param has some attempts at getting the version number added commented out. The py-pyviz_comms has the exact same issue. holoviews fails to load w/o proper version numbers.

Changed 21 months ago by Schamschula (Marius Schamschula)

Attachment: Portfile.3 added

holoviews Portfile

Changed 21 months ago by mf2k (Frank Schima)

Attachment: Portfile.4 added

Fixed py-param Portfile. Please test if this works for you like it does for me.

comment:6 Changed 21 months ago by mf2k (Frank Schima)

I'm not understanding your HoloViews Portfile. Should it simply be py-holoviews? Thus no need to python variants.

comment:7 Changed 21 months ago by Schamschula (Marius Schamschula)

Frank,

I've run into this before: by convention, the final executable does not have the py prefix, i.e. certbot, not py-certbot. However, you are right, I need to move it out of the python directory.

The suggestion to rename the *--py3.7.egg-info directory worked. I also had to manually update the Version in the PKG-INFO file.

comment:8 Changed 21 months ago by Schamschula (Marius Schamschula)

Owner: set to Schamschula
Resolution: fixed
Status: newclosed

In bd218fb21e38e6a12fe5c68c781bffdc483c589c/macports-ports (master):

holoviews 1.11.2: new port

Closes: #57992

Note: See TracTickets for help on using tickets.