/build/
/dist/
/MANIFEST
+/pypol.egg-info/
+/venv/
__pycache__
-/venv
PYTHON=python3
+PIP=pip3
+VIRTUALENV=pyvenv
RM=rm -rf
.PHONY: default
.PHONY: clean
clean:
- $(RM) build dist MANIFEST pypol/__pycache__ tests/__pycache__ venv
+ $(RM) build dist MANIFEST venv
+ $(RM) pypol.egg-info pypol/islhelper.*.so pypol/__pycache__
+ $(RM) tests/__pycache__
+
+.PHONY: venv
+venv:
+ $(RM) venv
+ $(VIRTUALENV) venv
+ . venv/bin/activate; $(PIP) install -e .
--- /dev/null
+/islhelper.*.so
import functools
import numbers
-import json
import ctypes, ctypes.util
-from pypol import isl, islhelper
from fractions import Fraction, gcd
+from . import isl, islhelper
+
+
libisl = ctypes.CDLL(ctypes.util.find_library('isl'))
libisl.isl_printer_get_str.restype = ctypes.c_char_p
author='MINES ParisTech',
packages=['pypol'],
ext_modules = [
- Extension('pypol/islhelper', sources=['pypol/islhelper.c'])
+ Extension('pypol.islhelper', sources=['pypol/islhelper.c'])
]
)