mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
8a3a99ba21
Summary: Be a better citizen under system python path. Fix all tests issues and change setup.py to use glob pattern to include all extensions. Test Plan: Run tests and `make local`. Also build and install the package and run `hg sl` in major repos. Reviewers: #mercurial, ttung, rmcelroy Reviewed By: rmcelroy Subscribers: rmcelroy, durham, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D3534311 Signature: t1:3534311:1468275426:fe122646c8bd6c541e1889e73e9df28f86747ff2
16 lines
293 B
Bash
Executable File
16 lines
293 B
Bash
Executable File
#!/bin/bash
|
|
|
|
hasext() {
|
|
for modname in "$1" "hgext.$1" "hgext3rd.$1"; do
|
|
${PYTHON:-python} -c "import $1" 2> /dev/null && return 0
|
|
done
|
|
false
|
|
}
|
|
|
|
for extname in "$@"; do
|
|
hasext $extname || {
|
|
echo 'skipped: missing feature: '"$extname"
|
|
exit 80
|
|
}
|
|
done
|