Index: src/mapservice/codegen/code_generator
===================================================================
--- src/mapservice/codegen/code_generator	(revision cdd6542b5508f8ff8a09acc02923b6a5cd16906f)
+++ src/mapservice/codegen/code_generator	(revision 8f3d1dd83116e3e0c5982f652ccd36a7565acb7b)
@@ -7,4 +7,5 @@
 TARGET="${SRC_GEN}/${PACKAGE_NAME}/"
 CELERY_WORKER_SCRIPT="${SRC_GEN}/celery_worker"
+TOX_INSTALL_COMMAND="${SRC_GEN}/tox_install_command"
 
 echo "Cleaning directory"
@@ -53,4 +54,9 @@
 chmod +x "${CELERY_WORKER_SCRIPT}"
 
+echo "#!/bin/bash" > "${TOX_INSTALL_COMMAND}"
+echo 'pip install --editable=file:///`pwd`/../../common' >> "${TOX_INSTALL_COMMAND}"
+echo 'pip install $@' >> "${TOX_INSTALL_COMMAND}"
+chmod 0755 "${TOX_INSTALL_COMMAND}"
+
 ########
 #
Index: src/mapservice/codegen/templates/tox.mustache
===================================================================
--- src/mapservice/codegen/templates/tox.mustache	(revision cdd6542b5508f8ff8a09acc02923b6a5cd16906f)
+++ src/mapservice/codegen/templates/tox.mustache	(revision 8f3d1dd83116e3e0c5982f652ccd36a7565acb7b)
@@ -6,4 +6,6 @@
      -r{toxinidir}/test-requirements.txt
 
+install_command = {toxinidir}/tox_install_command {opts} {packages}
+
 commands=
    nosetests \
