Skip to content

Commit

Permalink
Fixed libparsec file scheme in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ironicbay committed Feb 23, 2022
1 parent ed62d02 commit 98b23f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file added newsfragments/2046.empty.rst
Empty file.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ def get_requirement_from_file(file):
return [str(r) for r in pkg_resources.parse_requirements(requirements_txt)]


PKG_DIR_PATH = Path(os.path.dirname(os.path.abspath(__file__)))

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")
Expand All @@ -290,7 +292,7 @@ def get_requirement_from_file(file):
# 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()}"
f"libparsec @ file://localhost{(PKG_DIR_PATH / 'oxidation/libparsec_python').resolve().absolute()}"
],
}

Expand Down

0 comments on commit 98b23f6

Please sign in to comment.