| ... | ... |
@@ -1251,7 +1251,11 @@ function safe_chmod() {
|
| 1251 | 1251 |
|
| 1252 | 1252 |
# ``pip install -e`` the package, which processes the dependencies |
| 1253 | 1253 |
# using pip before running `setup.py develop` |
| 1254 |
-# Uses globals ``STACK_USER``, ``TRACK_DEPENDS``, ``REQUIREMENTS_DIR`` |
|
| 1254 |
+# |
|
| 1255 |
+# Updates the dependencies in project_dir from the |
|
| 1256 |
+# openstack/requirements global list before installing anything. |
|
| 1257 |
+# |
|
| 1258 |
+# Uses globals ``TRACK_DEPENDS``, ``REQUIREMENTS_DIR`` |
|
| 1255 | 1259 |
# setup_develop directory |
| 1256 | 1260 |
function setup_develop() {
|
| 1257 | 1261 |
local project_dir=$1 |
| ... | ... |
@@ -1267,9 +1271,7 @@ function setup_develop() {
|
| 1267 | 1267 |
$SUDO_CMD python update.py $project_dir) |
| 1268 | 1268 |
fi |
| 1269 | 1269 |
|
| 1270 |
- pip_install -e $project_dir |
|
| 1271 |
- # ensure that further actions can do things like setup.py sdist |
|
| 1272 |
- safe_chown -R $STACK_USER $1/*.egg-info |
|
| 1270 |
+ setup_develop_no_requirements_update $project_dir |
|
| 1273 | 1271 |
|
| 1274 | 1272 |
# We've just gone and possibly modified the user's source tree in an |
| 1275 | 1273 |
# automated way, which is considered bad form if it's a development |
| ... | ... |
@@ -1286,6 +1288,18 @@ function setup_develop() {
|
| 1286 | 1286 |
fi |
| 1287 | 1287 |
} |
| 1288 | 1288 |
|
| 1289 |
+# ``pip install -e`` the package, which processes the dependencies |
|
| 1290 |
+# using pip before running `setup.py develop` |
|
| 1291 |
+# Uses globals ``STACK_USER`` |
|
| 1292 |
+# setup_develop_no_requirements_update directory |
|
| 1293 |
+function setup_develop_no_requirements_update() {
|
|
| 1294 |
+ local project_dir=$1 |
|
| 1295 |
+ |
|
| 1296 |
+ pip_install -e $project_dir |
|
| 1297 |
+ # ensure that further actions can do things like setup.py sdist |
|
| 1298 |
+ safe_chown -R $STACK_USER $1/*.egg-info |
|
| 1299 |
+} |
|
| 1300 |
+ |
|
| 1289 | 1301 |
|
| 1290 | 1302 |
# Service wrapper to start services |
| 1291 | 1303 |
# start_service service-name |
| ... | ... |
@@ -39,10 +39,10 @@ function install_stackforge() {
|
| 39 | 39 |
cleanup_stackforge |
| 40 | 40 |
|
| 41 | 41 |
git_clone $WSME_REPO $WSME_DIR $WSME_BRANCH |
| 42 |
- setup_develop $WSME_DIR |
|
| 42 |
+ setup_develop_no_requirements_update $WSME_DIR |
|
| 43 | 43 |
|
| 44 | 44 |
git_clone $PECAN_REPO $PECAN_DIR $PECAN_BRANCH |
| 45 |
- setup_develop $PECAN_DIR |
|
| 45 |
+ setup_develop_no_requirements_update $PECAN_DIR |
|
| 46 | 46 |
} |
| 47 | 47 |
|
| 48 | 48 |
# cleanup_stackforge() - purge possibly old versions of stackforge libraries |