Skip to content

Commit

Permalink
Trac #32894: split out a separate Python package primecountpy
Browse files Browse the repository at this point in the history
This is a followup to #25009, and also resolves the bugs mentioned in
#24960.

Here is my attempt (WIP) to create such a package:
https://github.com/dimpase/primecountpy

On PyPI: https://pypi.org/project/primecountpy/

URL: https://trac.sagemath.org/32894
Reported by: dimpase
Ticket author(s): Dima Pasechnik
Reviewer(s): Matthias Koeppe
  • Loading branch information
Release Manager committed Dec 21, 2021
2 parents 17a667d + 74b3845 commit 1c8e98f
Show file tree
Hide file tree
Showing 16 changed files with 70 additions and 456 deletions.
1 change: 1 addition & 0 deletions build/pkgs/primecount/distros/conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
primecount
18 changes: 18 additions & 0 deletions build/pkgs/primecountpy/SPKG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
primecountpy: Cython interface for C++ primecount library
=========================================================

Description
-----------

Cython interface for C++ primecount library

License
-------

GPLv3

Upstream Contact
----------------

https://pypi.org/project/primecountpy/

5 changes: 5 additions & 0 deletions build/pkgs/primecountpy/checksums.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
tarball=primecountpy-VERSION.tar.gz
sha1=3526784adad04d67a15f05fb1367d12ec50a59dc
md5=e25806cba603d04cc7bc1852df5d0b92
cksum=4293153144
upstream_url=https://pypi.io/packages/source/p/primecountpy/primecountpy-VERSION.tar.gz
4 changes: 4 additions & 0 deletions build/pkgs/primecountpy/dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(PYTHON) primecount cysignals | $(PYTHON_TOOLCHAIN) cython

----------
All lines of this file are ignored except the first.
1 change: 1 addition & 0 deletions build/pkgs/primecountpy/install-requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
primecountpy
1 change: 1 addition & 0 deletions build/pkgs/primecountpy/package-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.0
2 changes: 2 additions & 0 deletions build/pkgs/primecountpy/spkg-install.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
cd src
sdh_pip_install .
1 change: 1 addition & 0 deletions build/pkgs/primecountpy/type
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
standard
1 change: 1 addition & 0 deletions build/pkgs/primesieve/distros/conda.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
primesieve
2 changes: 1 addition & 1 deletion build/pkgs/sagelib/dependencies
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FORCE $(SCRIPTS) arb boost_cropped $(BLAS) brial cliquer cypari cysignals cython ecl eclib ecm flint libgd gap giac givaro glpk gmpy2 gsl iml jinja2 jupyter_core lcalc lrcalc libbraiding libhomfly libpng linbox m4ri m4rie memory_allocator mpc mpfi mpfr $(MP_LIBRARY) ntl numpy pari pip pkgconfig planarity ppl pplpy primesieve primecount pycygwin $(PYTHON) ratpoints rw sage_conf singular symmetrica zn_poly $(PCFILES) | $(PYTHON_TOOLCHAIN) sage_setup
FORCE $(SCRIPTS) arb boost_cropped $(BLAS) brial cliquer cypari cysignals cython ecl eclib ecm flint libgd gap giac givaro glpk gmpy2 gsl iml jinja2 jupyter_core lcalc lrcalc libbraiding libhomfly libpng linbox m4ri m4rie memory_allocator mpc mpfi mpfr $(MP_LIBRARY) ntl numpy pari pip pkgconfig planarity ppl pplpy primesieve primecount primecountpy pycygwin $(PYTHON) ratpoints rw sage_conf singular symmetrica zn_poly $(PCFILES) | $(PYTHON_TOOLCHAIN) sage_setup

----------
All lines of this file are ignored except the first.
Expand Down
2 changes: 1 addition & 1 deletion pkgs/sagemath-standard/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
t = time.time()
from sage_setup.optional_extension import is_package_installed_and_updated
distributions = ['']
optional_packages_with_extensions = ['mcqd', 'bliss', 'tdlib', 'primecount',
optional_packages_with_extensions = ['mcqd', 'bliss', 'tdlib',
'coxeter3', 'fes', 'sirocco', 'meataxe']
distributions += ['sagemath-{}'.format(pkg)
for pkg in optional_packages_with_extensions
Expand Down
Loading

0 comments on commit 1c8e98f

Please sign in to comment.