Skip to content

Commit 612a640

Browse files
Merge branch 'master' into std-shared-ptr
2 parents 50b271e + cbb74c1 commit 612a640

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

example/setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import os, pkg_resources
1+
import os
2+
from importlib.resources import files
23
from distutils.core import setup, Extension
34
from Cython.Distutils import build_ext
45

5-
data_dir = pkg_resources.resource_filename("autowrap", "data_files")
6+
# Replace pkg_resources.resource_filename("autowrap", "data_files")
7+
data_dir = str(files("autowrap") / "data_files")
68
include_dir = os.path.join(data_dir, "autowrap")
79

810
ext = Extension(

0 commit comments

Comments
 (0)