Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
src/sage: Move OptionalExtension options (except tdlib, coxeter) from…
Browse files Browse the repository at this point in the history
… src/module_list.py to distutils directives
  • Loading branch information
Matthias Koeppe committed Jun 3, 2020
1 parent 860e4dc commit bfd9fed
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
11 changes: 1 addition & 10 deletions src/module_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,13 +403,10 @@ def uname_specific(name, value, alternative):

OptionalExtension("sage.graphs.mcqd",
["sage/graphs/mcqd.pyx"],
language = "c++",
package = 'mcqd'),

OptionalExtension("sage.graphs.bliss",
["sage/graphs/bliss.pyx"],
language = "c++",
libraries = ['bliss'],
package = 'bliss'),

Extension('sage.graphs.planarity',
Expand Down Expand Up @@ -527,8 +524,6 @@ def uname_specific(name, value, alternative):

OptionalExtension("sage.libs.fes",
["sage/libs/fes.pyx"],
language = "c",
libraries = ['fes'],
package = 'fes'),

Extension('sage.libs.flint.flint',
Expand Down Expand Up @@ -560,9 +555,7 @@ def uname_specific(name, value, alternative):

OptionalExtension('sage.libs.sirocco',
sources = ["sage/libs/sirocco.pyx"],
libraries = ["sirocco"],
package="sirocco",
language = 'c++'),
package="sirocco"),

Extension('*', ['sage/libs/linbox/*.pyx']),

Expand All @@ -583,7 +576,6 @@ def uname_specific(name, value, alternative):

OptionalExtension("sage.libs.meataxe",
sources = ['sage/libs/meataxe.pyx'],
libraries = ['mtx'],
package = 'meataxe'),

Extension('*', ['sage/libs/pari/*.pyx']),
Expand Down Expand Up @@ -894,7 +886,6 @@ def uname_specific(name, value, alternative):

OptionalExtension("sage.matrix.matrix_gfpn_dense",
sources = ['sage/matrix/matrix_gfpn_dense.pyx'],
libraries = ['mtx'],
package = 'meataxe'),

Extension('sage.matrix.misc',
Expand Down
4 changes: 4 additions & 0 deletions src/sage/graphs/bliss.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# distutils: language = c++
# distutils: libraries = bliss
# sage_setup: package = sage-bliss

r"""
Interface with bliss: graph (iso/auto)morphism
Expand Down
2 changes: 2 additions & 0 deletions src/sage/graphs/mcqd.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# distutils: language = c++
# sage_setup: package = sage-mcqd

from sage.ext.memory_allocator cimport MemoryAllocator

Expand Down
2 changes: 2 additions & 0 deletions src/sage/interfaces/primecount.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# sage_setup: package = sage-primecount

r"""
Interface to the primecount library
"""
Expand Down
3 changes: 3 additions & 0 deletions src/sage/libs/fes.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# distutils: language = c
# distutils: libraries = fes
# sage_setup: distribution = sage-fes
"""
Binding for the FES library
Expand Down
2 changes: 2 additions & 0 deletions src/sage/libs/meataxe.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# distutils: libraries = mtx
# sage_setup: distribution = sage-meataxe
#*****************************************************************************
# Copyright (C) 2017 Simon King <[email protected]>
#
Expand Down
3 changes: 3 additions & 0 deletions src/sage/libs/sirocco.pyx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#cython: boundscheck=False, wraparound=False
# distutils: libraries = sirocco
# distutils: language = c++
# sage_setup: distribution = sage-sirocco
r"""
Cython wrapper for sirocco library
Expand Down
2 changes: 2 additions & 0 deletions src/sage/matrix/matrix_gfpn_dense.pyx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# distutils: libraries = mtx
# sage_setup: distribution = sage-meataxe
r"""
Dense Matrices over `\mathbb F_q`, with `q<255`.
Expand Down

0 comments on commit bfd9fed

Please sign in to comment.