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

Add optional Arb package (arbitrary-precision floating-point ball arithmetic) #16747

Closed
sagetrac-ktkohl mannequin opened this issue Jul 31, 2014 · 37 comments
Closed

Add optional Arb package (arbitrary-precision floating-point ball arithmetic) #16747

sagetrac-ktkohl mannequin opened this issue Jul 31, 2014 · 37 comments

Comments

@sagetrac-ktkohl
Copy link
Mannequin

sagetrac-ktkohl mannequin commented Jul 31, 2014

Add Arb http://fredrikj.net/arb/ as an optional/experimental package.
Source code here: https://www.math.aau.at/user/cheuberg/sage/arb-2.3.0.tar.gz
(This is a renamed version of the original tarball at https://github.com/fredrik-johansson/arb/archive/2.3.0.tar.gz, see the comment by jdemeyer)

CC: @sagetrac-alina @fredrik-johansson @mezzarobba

Component: packages: optional

Keywords: arb, optional package. interval field

Author: Karen Kohl, Laura Peskin, Clemens Heuberger

Branch/Commit: ec0aae9

Reviewer: Jeroen Demeyer

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

@sagetrac-ktkohl sagetrac-ktkohl mannequin added this to the sage-6.3 milestone Jul 31, 2014
@sagetrac-ktkohl
Copy link
Mannequin Author

sagetrac-ktkohl mannequin commented Jul 31, 2014

Changed author from ktkohl to ktkohl, lpeskin

@sagetrac-ktkohl
Copy link
Mannequin Author

sagetrac-ktkohl mannequin commented Jul 31, 2014

Branch: u/ktkohl/ticket/16747

@sagetrac-ktkohl
Copy link
Mannequin Author

sagetrac-ktkohl mannequin commented Jul 31, 2014

Commit: a2c8861

@sagetrac-ktkohl
Copy link
Mannequin Author

sagetrac-ktkohl mannequin commented Jul 31, 2014

comment:4

How do I get the arb-2.2.tar.bz2 to be part of the commit?


New commits:

a2c8861Sage install files for Arb 2.2

@cheuberg
Copy link
Contributor

cheuberg commented Aug 8, 2014

Changed branch from u/ktkohl/ticket/16747 to u/cheuberg/ticket/16747

@cheuberg
Copy link
Contributor

cheuberg commented Aug 8, 2014

comment:6

I modified the patch:

  • use the .tar.gz file from github with version number instead of unversioned .zip file
  • use Sage's versions of flint, mpfr, gmp in building the package (if there is no version of one of those in the system paths, then the optional package won't compile).
  • Set package version to 2.2.0 to match the name of the top level directory of the .tar.gz file so that no renaming to src is necessary.

In that version, it compiles for me.

Are you planning to provide and include python bindings for the library?


New commits:

a2c8861Sage install files for Arb 2.2
40eccd8Use Sage's flint, mpfr, gmp instead of possibly locally installed versions
c66113fUse .tar.gz file from github, Version is 2.2.0, then no rename to src is necessary.

@cheuberg
Copy link
Contributor

cheuberg commented Aug 8, 2014

Changed commit from a2c8861 to c66113f

@cheuberg

This comment has been minimized.

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@cheuberg
Copy link
Contributor

cheuberg commented Sep 1, 2014

comment:8

Replying to @sagetrac-ktkohl:

How do I get the arb-2.2.tar.bz2 to be part of the commit?

In the developer guide, it says "If all went fine, open a ticket, put a link to the original tarball in the ticket and upload a branch with the code under SAGE_ROOT/build/pkgs." So IMHO, there is nothing else to do.

@fredrik-johansson
Copy link

comment:9

I recently updated the makefile in Arb (requires a git checkout). This might solve some potential build issues with the 2.2 release.

@cheuberg
Copy link
Contributor

comment:10

Replying to @fredrik-johansson:

I recently updated the makefile in Arb (requires a git checkout). This might solve some potential build issues with the 2.2 release.

For the sage spkg, it would probably be easier to have a release on github with that change.

@original authors: is there a reason why the status of this patch is not "needs_review"? I'd also like to renew my question on whether you plan to provide python bindings.

@fredrik-johansson
Copy link

comment:11

I will make a new release soon.

I've also just added methods arb_get_interval_mpfr/arb_set_interval_mpfr which should simplify conversion to/from Sage's RIF and CIF.

@fredrik-johansson
Copy link

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 17, 2014

Changed commit from c66113f to f2c5b0b

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 17, 2014

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

f2c5b0bTrac #16747: Update arb to version 2.3.0

@cheuberg
Copy link
Contributor

comment:14

Updated to version 2.3.0; replaced usernames of original ticket authors by their full names as given by SPKG.txt.

@cheuberg
Copy link
Contributor

Changed author from ktkohl, lpeskin to Karen Kohl, Laura Peskin, Clemens Heuberger

@cheuberg

This comment has been minimized.

@cheuberg
Copy link
Contributor

Changed keywords from none to arb, optional package. interval field

@jdemeyer
Copy link

comment:15

The tarball name is too strange: it should contain the package name (arb-2.3.0.tar.gz)

@jdemeyer
Copy link

comment:16

Is the -j1 needed for $MAKE install?

@jdemeyer
Copy link

comment:17

Try to avoid long lines like

Arb is a C library for arbitrary-precision floating-point ball arithmetic, developed by Fredrik Johansson (fredrik.johansson@gmail.com). It supports efficient high-precision computation with polynomials, power series, matrices and special functions over the real and complex numbers, with automatic, rigorous error control.

@vbraun
Copy link
Member

vbraun commented Oct 17, 2014

comment:18

We most likely really need the --libdir="$SAGE_LOCAL/lib". Some systems have hacked lt to install libraries in strange locations by default.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 19, 2014

Changed commit from f2c5b0b to 7487164

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 19, 2014

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

f3f169dTrac #16747: Wrap long lines
f3ffd68Trac #16747: remove "-j1" from make install
7487164Trac #16747: remove --libdir

@cheuberg

This comment has been minimized.

@cheuberg
Copy link
Contributor

comment:20

Replying to @jdemeyer:

The tarball name is too strange: it should contain the package name (arb-2.3.0.tar.gz)

I cannot change the original name on github, therefore I downloaded a copy, renamed the tarball and placed it in my own webspace, see the modified description of the ticket.

@cheuberg
Copy link
Contributor

comment:21

Replying to @jdemeyer:

Is the -j1 needed for $MAKE install?

IMHO it is not needed and removing it should not have any effects (the only dependency of make install is the library which should have been compiled in parallel before; then make install creates two directories and copies a few files into these directories, but these steps would not be run in parallel, anyway). So -j1 is removed in commit f3ffd68.

@cheuberg
Copy link
Contributor

comment:22

Replying to @jdemeyer:

Try to avoid long lines

done in commit f3f169d.

@cheuberg
Copy link
Contributor

comment:23

Replying to @vbraun:

We most likely really need the --libdir="$SAGE_LOCAL/lib". Some systems have hacked lt to install libraries in strange locations by default.

The .configure script of arb does not support the option --libdir. Its Makefile.in uses $(DESTDIR)$(PREFIX)/lib (and $(DESTDIR)$(PREFIX)/include) as targets when installing the library.
Therefore, commit 7487164 removes --libdir (previously commented out).

@vbraun
Copy link
Member

vbraun commented Oct 19, 2014

comment:24

Argh, no autotools/libtool :-(

@cheuberg
Copy link
Contributor

comment:25

Rather minimal python bindings are now in #17194

@cheuberg
Copy link
Contributor

comment:27

See discussion on sage-devel concerning the section SPKG Maintainers.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 31, 2014

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

ec0aae9Trac #16747: Remove SPKG Maintainers section

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 31, 2014

Changed commit from 7487164 to ec0aae9

@jdemeyer
Copy link

jdemeyer commented Nov 6, 2014

Reviewer: Jeroen Demeyer

@vbraun
Copy link
Member

vbraun commented Nov 15, 2014

Changed branch from u/cheuberg/ticket/16747 to ec0aae9

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

4 participants