Skip to content

Fixed typo in python tag #30

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions analyzer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
README_PATH = "../README.md"
PYTHON_REQUIRES = ">=3.7"

PYTHON_TAG = sysconfig.get_python_version().replace('.', '')
PYTHON_VERSION = sysconfig.get_python_version().replace('.', '')

SETUP_REQUIRES = [
"patchelf"
Expand All @@ -37,7 +37,7 @@
"data/kernels.sqlite",
"data/linear/model.pth",
"data/lstm/model.pth",
"habitat_cuda.cpython-{}*.so".format(PYTHON_TAG),
"habitat_cuda.cpython-{}*.so".format(PYTHON_VERSION),
],
}

Expand Down Expand Up @@ -71,7 +71,7 @@ def run(self):
# Ensures that it links to the libraries included in the wheel
patchelf_bin_path = pkg_resources.get_distribution("patchelf").location + "/EGG-INFO/scripts/patchelf"
habitat_dir = os.listdir("habitat")
curr_python_ver = "{}".format(PYTHON_TAG)
curr_python_ver = "{}".format(PYTHON_VERSION)
library_name = ""
for fname in habitat_dir:
if fname.startswith("habitat_cuda.cpython-"+curr_python_ver) and fname.endswith(".so"):
Expand Down Expand Up @@ -147,7 +147,7 @@ def find_meta(meta):
keywords=KEYWORDS,
options={
"bdist_wheel": {
"python_tag": PYTHON_TAG
"python_tag": "py"+ PYTHON_VERSION
}
}
)