Skip to content

Add ensurepip #3794

Merged
youknowone merged 3 commits into
RustPython:mainfrom
youknowone:ensure-pip
Jul 18, 2022
Merged

Add ensurepip #3794
youknowone merged 3 commits into
RustPython:mainfrom
youknowone:ensure-pip

Conversation

@youknowone

Copy link
Copy Markdown
Member

alternative #3670

@youknowone youknowone requested review from fanninpm and removed request for fanninpm June 16, 2022 12:24
fullname = os.path.join(directory, filename)
open(fullname, "wb").close()

# TODO: RUSTPYTHON

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It may be helpful to note why this actually failed.

unittest.mock.patch.object(ensurepip, '_WHEEL_PKG_DIR', tmpdir)):
self.assertEqual(ensurepip.version(), '1.2.3b1')

# TODO: RUSTPYTHON

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It may be helpful to note why this actually failed.

self.assertIsNotNone(packages['pip'].wheel_name)
self.assertIsNotNone(packages['setuptools'].wheel_name)

# TODO: RUSTPYTHON

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It may be helpful to note why this actually failed.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It will be helpful but not necessary. I usually dig in the reasons only when I try to fix it. The major goal this time is adding the module.

@youknowone youknowone merged commit f2ea8e2 into RustPython:main Jul 18, 2022
@youknowone youknowone deleted the ensure-pip branch July 18, 2022 14:52
@youknowone

Copy link
Copy Markdown
Member Author

I will use this one to update venv

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