Skip to content

Conversation

theahura
Copy link

@theahura theahura commented Nov 3, 2021

Previously, find_extra_reqs would concatenate the package_location with the file_location for a library import. This fails when using a virtualenv, because the package_location and the file_location end up sharing paths. This PR changes the file_location to be relative to the package, so that you get an actual file path.

Fixes #75.

Previously, find_extra_reqs would concatenate the package_location with the file_location for a library import. This fails when using a virtualenv, because the package_location and the file_location end up sharing paths. This PR changes the file_location to be relative to the package, so that you get an actual file path. 

Fixes adamtheturtle#75.
@MrMino MrMino self-requested a review November 10, 2021 15:18
@theahura
Copy link
Author

Any update on this? It's a pretty low key change, would love to get this merged.

@adamtheturtle
Copy link
Owner

I do not have availability right now to work on this.

cc @MrMino .

@MrMino
Copy link
Collaborator

MrMino commented Mar 18, 2022

Some tests for this would be nice.

I still need to reproduce the original issue to make sure this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

extra-reqs fails with venv -- accidentally concatenates duplicate paths resulting in mistakes
3 participants