We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 50b271e + cbb74c1 commit 612a640Copy full SHA for 612a640
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