diff --git a/requirements.txt b/requirements.txt index f9d367f..55b30b6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ pyyaml>=3.10 progressbar2>=2.0.0 -pathlib>=1.0.0 ansible>=2.2.0 enum>=0.4.6 colorlog>=2.7.0 diff --git a/setup.py b/setup.py index 29be2bf..f6e3ef6 100755 --- a/setup.py +++ b/setup.py @@ -23,7 +23,6 @@ import os from platform import python_version import distutils -import pathlib try: from setuptools import setup, find_packages except ImportError: @@ -46,7 +45,7 @@ def execute_setup(): for fname in dirs: for cur_file in os.listdir(os.path.join(dname, fname)): if os.path.isfile(os.path.join(dname, fname, cur_file)): - real_path = pathlib.Path(os.path.join(dname, fname, cur_file)).relative_to("resources") + real_path = os.path.relpath((os.path.join(dname, fname, cur_file)), "resources") data_files.append((os.path.join("i3xfce", "resources", os.path.dirname(str(real_path))), [os.path.join("resources", str(real_path))]))