Skip to content

Commit

Permalink
modify setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mauserzjeh committed Nov 19, 2023
1 parent 9251af1 commit a5e0848
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
py_limited_api=True,
)

setup_version = ".".join(map(str, version))
version_str = ".".join(map(str, version))

setup(
name="cod-asset-importer",
version=sic(setup_version),
version=sic(version_str),
rust_extensions=[rust_extension],
package_dir={"": "python"},
packages=find_packages(where="python"),
Expand All @@ -33,12 +33,8 @@

if package:
cod_asset_importer = "cod_asset_importer"

package_version = "_".join(map(str, version))
package_name = f"{cod_asset_importer}_{package_version}"

package_name = f"{cod_asset_importer}_v{version_str}"
src = os.path.join(os.curdir, "python", cod_asset_importer)

zip_file_path = os.path.join(os.curdir, "release", f"{package_name}.zip")
with ZipFile(zip_file_path, "w") as zip_file:
for ext in ("*.py", "*.pyd"):
Expand Down

0 comments on commit a5e0848

Please sign in to comment.