summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-07 14:02:39 +0100
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2023-03-07 14:02:39 +0100
commitd03eb2e0032c99170dafd8558c104a0c50ab103f (patch)
tree52e7fd62e6cc18fe93b5fd21f41b19a0b56ba375
parentc5669521dde7abd35b6e3302b2a4ed91397054d0 (diff)
Python: Remove f-strings from setup.py
This is so that we can build on older python version for pip
-rwxr-xr-xwrappers/python/setup.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wrappers/python/setup.py b/wrappers/python/setup.py
index a994fd3..aeb65ae 100755
--- a/wrappers/python/setup.py
+++ b/wrappers/python/setup.py
@@ -65,8 +65,8 @@ def getlibpath(plat_name: str) -> typing.Union[str, None]:
processed_os = os_map[plat_os]
return (
- f"{processed_os}/{arch_map[plat_arch]}/"
- f"{lib_prefixes[processed_os]}{_libname}-{__version__}{lib_suffixes[processed_os]}"
+ processed_os + "/" + arch_map[plat_arch] + "/" +
+ lib_prefixes[processed_os] + _libname + "-" + __version__ + lib_suffixes[processed_os]
)
@@ -88,13 +88,13 @@ class bdist_wheel(_bdist_wheel):
libpath = getlibpath(self.plat_name)
if not libpath:
- print(f"Unknown platform: {self.plat_name}")
+ print("Unknown platform:", self.plat_name)
sys.exit(1)
- print(f"Building wheel for platform {self.plat_name}")
+ print("Building wheel for platform:",self.plat_name)
# setuptools will only use paths inside the package for package_data, so we copy the library
- tmp_lib = shutil.copy(f"{self.exports_lib_path}/{libpath}", "eduvpn_common/lib/")
+ tmp_lib = shutil.copy(self.exports_lib_path + "/" + libpath, "eduvpn_common/lib/")
_bdist_wheel.run(self)
os.remove(tmp_lib)
@@ -105,6 +105,6 @@ setup(
packages=["eduvpn_common"],
python_requires=">=3.6",
package_dir={"eduvpn_common": "eduvpn_common"},
- package_data={"eduvpn_common": [f"lib/*{_libname}*", "py.typed"]},
+ package_data={"eduvpn_common": ["lib/*" + _libname + "*", "py.typed"]},
cmdclass={"bdist_wheel": bdist_wheel},
)