Skip to content

Commit c5b606e

Browse files
committed
setup.py fix
1 parent 811ef2b commit c5b606e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setup.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
# Get the correct site-packages path dynamically
1212
site_packages_path = sysconfig.get_path("purelib").split("/lib/")[1]
13+
if "dist-packages" in site_packages_path:
14+
site_packages_path = site_packages_path.replace("dist-packages", "site-packages")
1315

1416
# Collect non-Python files
1517
for folder in folders_to_copy:
@@ -19,6 +21,7 @@
1921
file_path = os.path.normpath(path)
2022
sub_path.setdefault(folder_path, []).append(file_path)
2123

24+
2225
files_to_copy.extend(sub_path.items())
2326

2427
with open("requirements.txt") as f:
@@ -29,7 +32,7 @@
2932

3033
setup(
3134
name=app_name,
32-
version="1.0.4",
35+
version="1.0.5",
3336
description="pyCub - iCub in PyBullet",
3437
package_dir={"": "."},
3538
data_files=files_to_copy,

0 commit comments

Comments
 (0)