-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When Building Wheels, Resolve Relative Path Dependencies Correctly #2114
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ class Factory: | |
""" | ||
|
||
def create_poetry( | ||
self, cwd=None, io=None | ||
self, cwd=None, io=None, original_root=None, | ||
): # type: (Optional[Path], Optional[IO]) -> Poetry | ||
if io is None: | ||
io = NullIO() | ||
|
@@ -57,7 +57,7 @@ def create_poetry( | |
name = local_config["name"] | ||
version = local_config["version"] | ||
package = ProjectPackage(name, version, version) | ||
package.root_dir = poetry_file.parent | ||
package.root_dir = original_root or poetry_file.parent | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will sort of defeat the purpose, since we really want the build to use the source in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So after reading #2046 and especially the fact that these relative paths work fine if you build ONLY the wheel or ONLY the sdist... I have to ask, where is the need for this "isolated source copy" coming from? Building only the sdist doesn't seem to need it, building only the wheel doesn't seem to need it. So why is the CompleteBuilder trying to do something more than simply running both individual builders? |
||
|
||
for author in local_config["authors"]: | ||
package.authors.append(author) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing type hint.