Skip to content

Commit

Permalink
patches post install command for pip pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
acashmoney committed Jul 12, 2023
1 parent 330097f commit 6b04d0e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ def run(self):
# Retrieve platform from environment variable
plat_name = os.environ['PLAT_NAME']

current_binary_version = "0.8.2"
# map plat_name to go_bin_url
urls = {
"darwin_x86_64": "https://github.com/labdao/plex/releases/download/v0.8.1/plex_0.8.1_darwin_amd64.tar.gz",
"darwin_arm64": "https://github.com/labdao/plex/releases/download/v0.8.1/plex_0.8.1_darwin_arm64.tar.gz",
"linux_x86_64": "https://github.com/labdao/plex/releases/download/v0.8.1/plex_0.8.1_linux_amd64.tar.gz",
"win_amd64": "https://github.com/labdao/plex/releases/download/v0.8.1/plex_0.8.1_windows_amd64.tar.gz",
"darwin_x86_64": f"https://github.com/labdao/plex/releases/download/v{current_binary_version}/plex_{current_binary_version}_darwin_amd64.tar.gz",
"darwin_arm64": f"https://github.com/labdao/plex/releases/download/v{current_binary_version}/plex_{current_binary_version}_darwin_arm64.tar.gz",
"linux_x86_64": f"https://github.com/labdao/plex/releases/download/v{current_binary_version}/plex_{current_binary_version}_linux_amd64.tar.gz",
"win_amd64": f"https://github.com/labdao/plex/releases/download/v{current_binary_version}/plex_{current_binary_version}_windows_amd64.tar.gz",
}

go_bin_url = urls.get(plat_name)
Expand Down Expand Up @@ -53,7 +54,7 @@ def download_and_extract(self, go_bin_url, temp_dir):

setup(
name="PlexLabExchange",
version="0.8.14",
version="0.8.16",
packages=find_packages(where='src'), # tell setuptools to look in the 'src' directory for packages
package_dir={'': 'src'}, # tell setuptools that the packages are under the 'src' directory
cmdclass={
Expand Down

0 comments on commit 6b04d0e

Please sign in to comment.