Skip to content

Commit a7baa03

Browse files
committed
tools: Use current filepath instead of using deprecated attribute
1 parent 6e4fea1 commit a7baa03

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.5.4 | 2023-05-02
4+
5+
- Removed the only usage of deprecated attribute `deps_cpp_info` of `Conanfile` from `embedded_python_tools.py`.
6+
37
## v1.5.3 | 2023-04-25
48

59
- Fixed a bug where the python version would be incorrectly cached between builds as the conan `source` method is only called once.

conanfile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# noinspection PyUnresolvedReferences
1313
class EmbeddedPython(ConanFile):
1414
name = "embedded_python"
15-
version = "1.5.3" # of the Conan package, `options.version` is the Python version
15+
version = "1.5.4" # of the Conan package, `options.version` is the Python version
1616
license = "PSFL"
1717
description = "Embedded distribution of Python"
1818
topics = "embedded", "python"

embedded_python_tools.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def imports(self):
4848
os.remove(dst)
4949
except: # this seems to be the only way to find out this is not a junction
5050
shutil.rmtree(dst)
51-
52-
src = pathlib.Path(conanfile.deps_cpp_info["embedded_python"].rootpath) / "embedded_python"
51+
root_folder = pathlib.Path(__file__).resolve().parent
52+
src = root_folder / "embedded_python"
5353
_symlink_compat(conanfile, src, dst)
5454

5555
bin = pathlib.Path(bin).absolute()

0 commit comments

Comments
 (0)