Skip to content

Commit 16e2f2a

Browse files
committed
Rename epr/epr.[pxd|pyx] into epr/_epr[pdx|pyx]
1 parent e13bd9a commit 16e2f2a

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ docs:
9393
$(MAKE) -C docs linkcheck
9494
$(MAKE) -C docs spelling
9595

96-
ext: src/epr/epr.pyx
96+
ext: src/epr/_epr.pyx src/epr/_epr.pxd
9797
$(PYTHON) setup.py build_ext --inplace --epr-api-src=$(EPRAPIROOT)/src
9898

9999
cythonize: src/epr/_epr.c
100100

101-
src/epr/_epr.c: src/epr/epr.pyx
102-
$(CYTHON) $(CYTHONFLAGS) -o src/epr/_epr.c src/epr/epr.pyx
101+
src/epr/_epr.c: src/epr/_epr.pyx src/epr/_epr.pxd
102+
$(CYTHON) $(CYTHONFLAGS) -o src/epr/_epr.c src/epr/_epr.pyx
103103

104-
ext-coverage: src/epr/epr.pyx
104+
ext-coverage: src/epr/_epr.pyx src/epr/_epr.pxd
105105
env PYEPR_COVERAGE=TRUE $(PYTHON) setup.py build_ext --inplace
106106

107107
debug:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def setup_extension(eprsrcdir=None, *, coverage: bool = False):
6666

6767
ext = NumpyExtension(
6868
"epr._epr",
69-
sources=[os.path.join("src", "epr", "epr.pyx"), *extra_sources],
69+
sources=[os.path.join("src", "epr", "_epr.pyx"), *extra_sources],
7070
include_dirs=include_dirs,
7171
libraries=libraries,
7272
language="c",
File renamed without changes.

src/epr/epr.pyx renamed to src/epr/_epr.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ from libc.stdio cimport FILE
3131
from cpython.object cimport PyObject_AsFileDescriptor
3232
from cpython.weakref cimport PyWeakref_NewRef
3333

34-
from .epr cimport *
34+
from ._epr cimport *
3535

3636
np.import_array()
3737

0 commit comments

Comments
 (0)