diff --git a/newsfragments/2046.empty.rst b/newsfragments/2046.empty.rst new file mode 100644 index 00000000000..e69de29bb2d diff --git a/setup.py b/setup.py index eeca512fbbe..b199d085cd2 100755 --- a/setup.py +++ b/setup.py @@ -277,6 +277,8 @@ def get_requirement_from_file(file): return [str(r) for r in pkg_resources.parse_requirements(requirements_txt)] +LIBPARSEC_PATH = Path(os.path.dirname(os.path.abspath(__file__))) / "oxidation/libparsec_python" + requirements = get_requirement_from_file("requirement/install_requirement.txt") test_requirements = get_requirement_from_file("requirement/test_requirement.txt") core_requirements = get_requirement_from_file("requirement/core_requirement.txt") @@ -289,9 +291,7 @@ def get_requirement_from_file(file): # Oxidation is a special case: for the moment it is experimental (i.e. not # shipped in production) and only contains rewriting of Python parts so # it can be safely ignored for any purpose. - "oxidation": [ - f"libparsec @ file://{(Path(__file__) / '../oxidation/libparsec_python').resolve().absolute()}" - ], + "oxidation": [f"libparsec @ file://localhost{LIBPARSEC_PATH}"], } extra_requirements["all"] = sum([v for k, v in extra_requirements.items() if k != "oxidation"], [])