Skip to content

Commit f926899

Browse files
authored
Fixed typo in python tag (#30)
1 parent 4f6b948 commit f926899

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

analyzer/setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
README_PATH = "../README.md"
2121
PYTHON_REQUIRES = ">=3.7"
2222

23-
PYTHON_TAG = sysconfig.get_python_version().replace('.', '')
23+
PYTHON_VERSION = sysconfig.get_python_version().replace('.', '')
2424

2525
SETUP_REQUIRES = [
2626
"patchelf"
@@ -37,7 +37,7 @@
3737
"data/kernels.sqlite",
3838
"data/linear/model.pth",
3939
"data/lstm/model.pth",
40-
"habitat_cuda.cpython-{}*.so".format(PYTHON_TAG),
40+
"habitat_cuda.cpython-{}*.so".format(PYTHON_VERSION),
4141
],
4242
}
4343

@@ -71,7 +71,7 @@ def run(self):
7171
# Ensures that it links to the libraries included in the wheel
7272
patchelf_bin_path = pkg_resources.get_distribution("patchelf").location + "/EGG-INFO/scripts/patchelf"
7373
habitat_dir = os.listdir("habitat")
74-
curr_python_ver = "{}".format(PYTHON_TAG)
74+
curr_python_ver = "{}".format(PYTHON_VERSION)
7575
library_name = ""
7676
for fname in habitat_dir:
7777
if fname.startswith("habitat_cuda.cpython-"+curr_python_ver) and fname.endswith(".so"):
@@ -147,7 +147,7 @@ def find_meta(meta):
147147
keywords=KEYWORDS,
148148
options={
149149
"bdist_wheel": {
150-
"python_tag": PYTHON_TAG
150+
"python_tag": "py"+ PYTHON_VERSION
151151
}
152152
}
153153
)

0 commit comments

Comments
 (0)