| ... | ... |
@@ -413,6 +413,16 @@ function setup_lib {
|
| 413 | 413 |
function setup_dev_lib {
|
| 414 | 414 |
local name=$1 |
| 415 | 415 |
local dir=${GITDIR[$name]}
|
| 416 |
+ if python3_enabled; then |
|
| 417 |
+ # Turn off Python 3 mode and install the package again, |
|
| 418 |
+ # forcing a Python 2 installation. This ensures that all libs |
|
| 419 |
+ # being used for development are installed under both versions |
|
| 420 |
+ # of Python. |
|
| 421 |
+ echo "Installing $name again without Python 3 enabled" |
|
| 422 |
+ USE_PYTHON3=False |
|
| 423 |
+ setup_develop $dir |
|
| 424 |
+ USE_PYTHON3=True |
|
| 425 |
+ fi |
|
| 416 | 426 |
setup_develop $dir |
| 417 | 427 |
} |
| 418 | 428 |
|