Bug 1054112 - Install hghooks package into testing environment; r=mconley
authorGregory Szorc <gps@mozilla.com>
Thu, 14 Aug 2014 18:46:35 -0700
changeset 913 342a1bddd7a9
parent 912 270fc247af25
child 914 09c744458c68
push id127
push usergszorc@mozilla.com
push dateFri, 15 Aug 2014 16:03:37 +0000
treeherderversion-control-tools@086c1ad25d16 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs1054112
Bug 1054112 - Install hghooks package into testing environment; r=mconley Before we use test hghooks hooks in the new testing world, we need to expose the hghooks package to the virtualenv. This patch does that.
create-test-environment
hghooks/setup.py
--- a/create-test-environment
+++ b/create-test-environment
@@ -18,16 +18,20 @@ easy_install ReviewBoard==2.0.5
 cd pylib/rbmozui;
 python setup.py develop
 cd ../..
 
 cd pylib/rbbz
 python setup.py develop
 cd ../..
 
+cd hghooks
+python setup.py develop
+cd ..
+
 # Collect code coverage from all Python processes if environment variable
 # is set.
 cat > venv/bin/sitecustomize.py << EOF
 import os
 
 if os.environ.get('CODE_COVERAGE', False):
     import uuid
     import coverage
--- a/hghooks/setup.py
+++ b/hghooks/setup.py
@@ -1,12 +1,12 @@
 # This is a distutils setup script for the mozhghooks module.
 # Install the module by running `python setup.py install`
 
-from distutils.core import setup
+from setuptools import setup
 
 setup(name="Mozilla Hg Hooks",
       version='0.1',
       description="Mozilla-specific hooks for Mercurial VCS",
       author="Ted Mielczarek",
       author_email="ted.mielczarek@gmail.com",
       packages=["mozhghooks"]
 )