Buildout not using pinned versions

59 Views Asked by At

When I try to run buildout for a existing project, which used to work perfectly fine, it now installs the incorrect version of Django, even though the version is pinned.

For some reason, it's installing Django 1.10 even though I've got 1.6 pinned. (I know that's an old version, but client doesn't want me to upgrade just yet.)

Here is a very trucated version of the the buildout config file.

[buildout]
index = https://pypi.python.org/simple
versions = versions
include-site-packages = false
extensions = mr.developer
unzip = true
newest = false

parts = ...
auto-checkout = *

eggs =
    <... Many eggs here ...>
    Django
    <... Many more eggs ...>


[base-versions]
...
Django = 1.6.1
...


[versions]
<= base-versions

The only other thing that I can think of that could possibly make an impact is that I recently reinstalled my system to Kubuntu 18.04 (Was previously Ubuntu 17.10)

2

There are 2 best solutions below

0
Andre On BEST ANSWER

The reason it wasn't working is because the [versions] part cannot be extended

1
uday kumar On

Pip can install a specific version of library using pip, you can try:

pip install django==1.6.1