Commit Graph

4 Commits

Author SHA1 Message Date
Jun Wu
e2a7b872ba demandimport: make sqlite3 non-lazy
Summary:
IPython has fallback code for `import sqlite3`. Make it non-lazy so IPython can
detect missing sqlite3 (on our Windows distribution) and continue working.

Reviewed By: ikostia

Differential Revision: D16897722

fbshipit-source-id: f7d312e10b9806498a03ce0788d436f6d72ddae8
2019-08-19 12:26:21 -07:00
Jun Wu
67cd8c9b81 demandimport: blacklist IPython dependencies
Summary: This makes IPython work without disabling demandimport.

Reviewed By: xavierd

Differential Revision: D16509106

fbshipit-source-id: d4443d8b58c90a0fd7a34c620756e88f4f788337
2019-07-29 13:45:44 -07:00
Jun Wu
242bf4638b demandimport: remove embeddedimport
Summary:
[hg] demandimport: remove embeddedimport

C:\open\fbsource\fbcode\scm\hg\build>\tools\hg\hg.real version
Mercurial Distributed SCM (version 4.4.2_20190619_140020_a183754579ac)
....

C:\open\fbsource\fbcode\scm\hg\build>\tools\hg\hg.real dbsh -c "print(sys.path)"
['C:\\tools\\hg\\python27.zip', 'C:\\tools\\hg']
```

Reviewed By: ikostia

Differential Revision: D15902013

fbshipit-source-id: 730b746ed482db22bf5c13c1f9dfd16f9b912c20
2019-06-24 08:34:23 -07:00
Jun Wu
c12e300bb8 codemod: move Python packages to edenscm
Summary:
Move top-level Python packages `mercurial`, `hgext` and `hgdemandimport` to
a new top-level package `edenscm`. This allows the Python packages provided by
the upstream Mercurial to be installed side-by-side.

To maintain compatibility, `edenscm/` gets added to `sys.path` in
`mercurial/__init__.py`.

Reviewed By: phillco, ikostia

Differential Revision: D13853115

fbshipit-source-id: b296b0673dc54c61ef6a591ebc687057ff53b22e
2019-01-28 18:35:41 -08:00