This is an archive of the discontinued Mercurial Phabricator instance.

rust: vendor pyembed crate
AbandonedPublic

Authored by indygreg on Nov 15 2019, 12:00 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

We want to use PyOxidizer to produce machine native executables
for running Mercurial. This commit starts the process of doing
that.

Under the hood, PyOxidizer uses a "pyembed" crate to manage an
embedded Python interpreter. This crate needs to be vendored
because it relies on a patched version of the rust-cpython
crate.

This commit vendors the pyembed crate associated with version
0.3 of PyOxidizer.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

indygreg created this revision.Nov 15 2019, 12:00 AM
indygreg planned changes to this revision.Nov 15 2019, 12:03 AM

We'll want to hold off on this until PyOxidizer is ready. And hopefully I can land the necessary changes to rust-cpython to avoid having to vendor this crate. I should try to get those patches landed upstream...

indygreg abandoned this revision.Dec 23 2019, 12:42 PM

D7449 is the successor to this patch.