Skip to content

Commit

Permalink
tools: Use current filepath instead of using deprecated attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hellozee committed May 2, 2023
1 parent 6e4fea1 commit a7baa03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.5.4 | 2023-05-02

- Removed the only usage of deprecated attribute `deps_cpp_info` of `Conanfile` from `embedded_python_tools.py`.

## v1.5.3 | 2023-04-25

- Fixed a bug where the python version would be incorrectly cached between builds as the conan `source` method is only called once.
Expand Down
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# noinspection PyUnresolvedReferences
class EmbeddedPython(ConanFile):
name = "embedded_python"
version = "1.5.3" # of the Conan package, `options.version` is the Python version
version = "1.5.4" # of the Conan package, `options.version` is the Python version
license = "PSFL"
description = "Embedded distribution of Python"
topics = "embedded", "python"
Expand Down
4 changes: 2 additions & 2 deletions embedded_python_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def imports(self):
os.remove(dst)
except: # this seems to be the only way to find out this is not a junction
shutil.rmtree(dst)

src = pathlib.Path(conanfile.deps_cpp_info["embedded_python"].rootpath) / "embedded_python"
root_folder = pathlib.Path(__file__).resolve().parent
src = root_folder / "embedded_python"
_symlink_compat(conanfile, src, dst)

bin = pathlib.Path(bin).absolute()
Expand Down

0 comments on commit a7baa03

Please sign in to comment.