Skip to content

Func pack fix #4462

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Func pack fix #4462

wants to merge 2 commits into from

Conversation

gavin-aguiar
Copy link
Contributor

@gavin-aguiar gavin-aguiar commented Jun 6, 2025

Issue describing the changes in this PR

This PR removes the dependency on 'distlibfrom theFunc pack` process. Replaced with native python libraries.

Tests Performed:

Ran: func pack --output test

image

resolves #issue_for_this_pr

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • I have added all required tests (Unit tests, E2E tests)

@gavin-aguiar gavin-aguiar marked this pull request as ready for review June 6, 2025 17:17
@gavin-aguiar gavin-aguiar requested a review from a team as a code owner June 6, 2025 17:17
self.abi_tag = parts[start_idx + 1]
self.platform_tag = parts[start_idx + 2]

def install(self, paths, maker):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where are we calling this install method?

cmd = [
'pip', 'download', '--no-deps', '--only-binary', ':all:',
'--platform', _platform_map.get(args.platform),
sys.executable, '-m', 'pip', 'download', '--no-deps', '--only-binary', ':all:',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not follow why we added sys.executable here? and why we removed line 162?

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.

2 participants