Skip to content

Commit

Permalink
build_taglib.py: make taglib build dir implementation-dependent
Browse files Browse the repository at this point in the history
  • Loading branch information
supermihi committed Mar 16, 2024
1 parent 8a74347 commit 50198f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build_taglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
arch = "x64" if is_x64 else "x32"
system = platform.system()
python_version = platform.python_version()
python_implementation = sys.implementation.name
here = Path(__file__).resolve().parent

taglib_version = "2.0"
Expand All @@ -26,7 +27,7 @@
class Configuration:
def __init__(self):
self.build_path = here / "build"
self.tl_install_dir = self.build_path / "taglib" / f"{system}-{arch}-py{python_version}"
self.tl_install_dir = self.build_path / "taglib" / f"{system}-{arch}-{python_implementation}-{python_version}"
self.clean = False

@property
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
arch = "x64" if is_x64 else "x32"
system = platform.system()
python_version = platform.python_version()
python_implementation = sys.implementation.name
here = Path(__file__).resolve().parent
default_taglib_path = here / "build" / "taglib" / f"{system}-{arch}-py{python_version}"
default_taglib_path = here / "build" / "taglib" / f"{system}-{arch}-{python_implementation-{python_version}"

src = Path("src")

Expand Down

0 comments on commit 50198f2

Please sign in to comment.