Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

igraph, python-igraph: Update to 0.8.3 #30899

Closed
mkoeppe opened this issue Nov 12, 2020 · 86 comments
Closed

igraph, python-igraph: Update to 0.8.3 #30899

mkoeppe opened this issue Nov 12, 2020 · 86 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Nov 12, 2020

(from #30611)

Released Oct 8, 2020. https://igraph.org/

the previous update was in #27597, where we also disabled blas/lapack inteface; perhaps it can make a comeback here.

This ticket also adds package texttable version 1.6.3, a dependency of python_igraph.


source tarballs: see checksums.ini

Upstream: Reported upstream. No feedback yet.

CC: @kiwifb @dcoudert @dimpase @slel @isuruf

Component: packages: optional

Author: David Coudert, Dima Pasechnik

Branch: 938d704

Reviewer: Dima Pasechnik, Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/30899

@mkoeppe mkoeppe added this to the sage-9.3 milestone Nov 12, 2020
@mkoeppe

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented Nov 13, 2020

@dimpase

This comment has been minimized.

@dcoudert
Copy link
Contributor

comment:4

This version of igraph is also in homebrew https://formulae.brew.sh/formula/igraph. I don't think we are currently checking whether graph is a system package or not.

We also need python_igraph (https://igraph.org/python/), right ?

@dcoudert

This comment has been minimized.

@dcoudert
Copy link
Contributor

comment:5

I tried to update to 0.8.3 on macOS 10.15.7. Compilation went well, but I have the following issues:

sapristi:sage dcoudert$ ./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.3.beta1, Release Date: 2020-11-07               │
│ Using Python 3.9.0. Type "help()" for help.                        │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable.     ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: import igraph                                                                                                                 
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-1-73ffca960e68> in <module>
----> 1 import igraph

~/sage/local/lib/python3.9/site-packages/igraph/__init__.py in <module>
     33 # W0401: wildcard import
     34 from igraph._igraph import *
---> 35 from igraph.clustering import *
     36 from igraph.cut import *
     37 from igraph.configuration import Configuration

~/sage/local/lib/python3.9/site-packages/igraph/clustering.py in <module>
     36 from igraph.drawing.colors import ClusterColoringPalette
     37 from igraph.statistics import Histogram
---> 38 from igraph.summary import _get_wrapper_for_width
     39 from igraph.utils import str_to_orientation
     40 

~/sage/local/lib/python3.9/site-packages/igraph/summary.py in <module>
      9 from itertools import islice
     10 from math import ceil
---> 11 from texttable import Texttable
     12 from textwrap import TextWrapper
     13 

ModuleNotFoundError: No module named 'texttable'

and

sage: from sage.features import PythonModule                                                                                        
sage: F = PythonModule("igraph", spkg="python_igraph", url="http://igraph.org")                                                     
sage: F.is_present()                                                                                                                
FeatureTestResult('igraph', False)

I don't know what to do


New commits:

d2f206dtrac #30899: update to 0.8.3

@dcoudert
Copy link
Contributor

Commit: d2f206d

@dcoudert
Copy link
Contributor

Branch: public/30899_igraph

@kiwifb
Copy link
Member

kiwifb commented Nov 16, 2020

comment:6

python-igraph has new dependencies that need to be added. pycairo and texttable

https://pypi.org/project/texttable/

https://pypi.org/project/pycairo/

We may be able to do without pycairo (which in turns will require cairo either as a spkg or system package, may be it is already required, that need to be checked).

@slel
Copy link
Member

slel commented Nov 17, 2020

comment:7

Indeed python-igraph used to vendor texttable but this was changed:

igraph/python-igraph@60194fb

Careful, it's texttable, not textable (both exist on PyPI).

https://pypi.org/project/texttable/

@dimpase
Copy link
Member

dimpase commented Nov 17, 2020

comment:8

as far as cairo and pycairo are concerned, we can add them, why not?

@kiwifb
Copy link
Member

kiwifb commented Nov 17, 2020

comment:9

cairo is potentially opening a nest of dependencies, so if skipping it was possible, I think that would be preferable.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

373c82btrac #30899: add texttable

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Changed commit from d2f206d to 373c82b

@dcoudert
Copy link
Contributor

Author: David Coudert

@dcoudert

This comment has been minimized.

@dcoudert
Copy link
Contributor

comment:11

I added texttable and it seems ok now on my side. Not sure I did it the right way...

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 17, 2020

comment:12

checksums.ini needs upstream_url (see #30895)

spkg-check.in looks incomplete.

The error handling in spkg-install.in can be removed - the function sdh_pip_install already takes care of it

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

2f8d505addded upstream_url's

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Changed commit from 373c82b to 2f8d505

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

63d3718remove unneeded error handling

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Changed commit from 2f8d505 to 63d3718

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 17, 2020

Changed commit from 63d3718 to 9626cf9

@slel
Copy link
Member

slel commented Nov 19, 2020

comment:47

Replying to @kiwifb:

I am not sure about using sage-python23 , aren't we
phasing that out to use plain python3 or python?

Yes, see #30731.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2020

Changed commit from 938d704 to 348569b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

348569btrac #30899: use python3 istead of sage-python23

@dimpase
Copy link
Member

dimpase commented Nov 19, 2020

comment:49

build/pkgs/python_igraph/spkg-install.in also has sage-python23

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2020

Changed commit from 348569b to cf66e4c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2020

Branch pushed to git repo; I updated commit sha1. New commits:

cf66e4ctrac #30899: missing change

@dimpase
Copy link
Member

dimpase commented Nov 19, 2020

comment:51

I don't like these sage-python23 -> python3 changes.
I don't see why this python3 is guaranteed to be the correct python.

In fact, no package at the moment uses python3 to run setup.py, while about a dozen
packages use sage-python23.
I really think until #30731 is done, we should continue using sage-python23.
Sorry I didn't check earlier.

@dcoudert
Copy link
Contributor

comment:52

I don't know how to remove the 2 lasts commits (I'm still at git beginner level...). Otherwise I can push a revert commit.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2020

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Nov 19, 2020

Changed commit from cf66e4c to 938d704

@dcoudert
Copy link
Contributor

comment:54

OK, I was able to remove the last 2 commits (and so revert to sage-python23). I had to do a forced push.

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2020

comment:55

Replying to @dimpase:

I don't like these sage-python23 -> python3 changes.

We will switch over in #30371 - and I agree that it is better for uniformity if we don't do this package by package.

I don't see why this python3 is guaranteed to be the correct python.

It is actually guaranteed by our installation.

@mkoeppe

This comment has been minimized.

@dcoudert

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented Nov 19, 2020

comment:58

lgtm

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2020

Changed reviewer from Dima Pasechnik to Dima Pasechnik, Matthias Koeppe

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 19, 2020

comment:59

Looks good. Given that this is an optional package, we can defer the actual portability tests to the automatic run of the GH Actions when it is merged into a beta release.

@dimpase
Copy link
Member

dimpase commented Nov 20, 2020

Upstream: Reported upstream. No feedback yet.

@dimpase
Copy link
Member

dimpase commented Nov 20, 2020

comment:60

I've opened igraph/igraph#1547 in regard of XCode 12 issue (solved with CFLAGS here).

@vbraun
Copy link
Member

vbraun commented Nov 22, 2020

Changed branch from public/30899_igraph to 938d704

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 3, 2020

comment:62

Follow up in #27921, running the libxml2 check via a script package

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 3, 2020

Changed commit from 938d704 to none

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Dec 7, 2020

comment:63

Volker, the upstream tarball for python_igraph seems to be missing on the mirrors. Note that make download has been repaired - so it should be easy to check if anything is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants