We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73bef05 commit cbb74c1Copy full SHA for cbb74c1
example/setup.py
@@ -1,8 +1,10 @@
1
-import os, pkg_resources
+import os
2
+from importlib.resources import files
3
from distutils.core import setup, Extension
4
from Cython.Distutils import build_ext
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")
8
include_dir = os.path.join(data_dir, "autowrap")
9
10
ext = Extension(
0 commit comments