Skip to content

Commit 579df14

Browse files
Merge pull request #14 from oscarbenjamin/pr_package
refactor: make flint a submodule of a flint package
2 parents d4dbfdd + 2e0fceb commit 579df14

29 files changed

Lines changed: 5 additions & 2 deletions

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
ext_modules = [
2323
Extension(
24-
"flint", ["src/pyflint.pyx"],
24+
"flint._flint", ["src/flint/pyflint.pyx"],
2525
libraries=libraries,
2626
library_dirs=default_lib_dirs,
2727
include_dirs=default_include_dirs)
@@ -34,6 +34,8 @@
3434
name='python-flint',
3535
cmdclass={'build_ext': build_ext},
3636
ext_modules=ext_modules,
37+
packages=['flint'],
38+
package_dir={'': 'src'},
3739
description='Bindings for FLINT and Arb',
3840
version='0.3.0',
3941
url='https://github.com/python-flint/python-flint',

src/flint/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from ._flint import *
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)