diff --git a/setup.py b/setup.py index 8eb3f38..29498a3 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ import os import os.path -from pkg_resources import resource_filename +from importlib import resources import shutil data_files = [ @@ -78,7 +78,7 @@ ) # Copy the udev rules file -udev_file = resource_filename("alienfx", "data/etc/udev/rules.d/10-alienfx.rules") +udev_file = resources.files("alienfx").joinpath("data/etc/udev/rules.d/10-alienfx.rules").open('rb') udev_rules_dir = "/etc/udev/rules.d/" try: if not os.path.exists(udev_rules_dir):