Skip to content

Commit

Permalink
Allow source files in different directories
Browse files Browse the repository at this point in the history
Co-authored-by: Albert Tugushev <albert@tugushev.ru>
  • Loading branch information
astrojuanlu and atugushev committed Feb 13, 2021
1 parent f98f090 commit 040be7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion piptools/scripts/compile.py
Expand Up @@ -398,7 +398,7 @@ def cli(
req.comes_from = comes_from
constraints.extend(reqs)
elif is_setup_file:
dist = meta.load(".")
dist = meta.load(os.path.dirname(os.path.abspath(src_file)))
comes_from = f"{dist.metadata.get_all('Name')[0]} ({src_file})"
constraints.extend(
[
Expand Down

0 comments on commit 040be7c

Please sign in to comment.