mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
5da361f55b
Summary: This updates how we build and package the eden hg extension, and how we find it during integration tests. - Update the extension to always look relative to its current location to find the other modules it depends on. This ensures that the integration tests always find modules from the local repository, and do not use the modules installed on the system. - Add a buck rule to unpack the python archive at build time. This is needed for integration tests to use the local version of the module. - Ensure that we install a correct `hgext3rd/__init__.py` module in the eden extension directory. This is required to correctly set up `hgext3rd` as a namespace package. This also unfortunately needs to be a `.py` file, and not just a .pyc file. (The pkgutil.expand_path() code looks specifically for directories containing `__init__.py` files, and does not check for `__init__.pyc`.) - Update the extension to only try importing the native thrift modules if we are running python 2.7.6 or greater. Python 2.7.6 is the first that supports unicode arguments to `struct.pack()`, which thrift requires. Python 2.7.5 can import the thrift modules, but throws errors when trying to run them. Reviewed By: bolinfest Differential Revision: D4935279 fbshipit-source-id: 9af81736124c55476a5eb5beba9474a4371a639b |
||
---|---|---|
.. | ||
edenclient.py | ||
find_executables.py | ||
fs.py | ||
gitrepo.py | ||
hgrepo.py | ||
repobase.py | ||
TARGETS | ||
testcase.py |