Conditional switch to install compiler
Adds a conditional switch to install the compiler and python development libraries. The switch is enabled by default to preserve the old behavior. Change-Id: If484e14a49c97467a38f9ab6e4b0e3351f60d4ed
This commit is contained in:
parent
8236a981a5
commit
379048a8f4
@ -35,7 +35,12 @@ pip_source_install_options: ""
|
||||
# The URL/path of a constraints file to use when installing the additional pip packages.
|
||||
#pip_install_upper_constraints: "http://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt"
|
||||
|
||||
pip_install_distro_packages: []
|
||||
pip_install_distro_packages: "{{ pip_install_build_packages | ternary(pip_install_distro_build_packages, []) }}"
|
||||
pip_install_distro_build_packages: []
|
||||
|
||||
# Some pip installations require the system to have a compiler present
|
||||
# Toggling this will install a compiler and python-dev libraries to the host
|
||||
pip_install_build_packages: yes
|
||||
|
||||
# This list var can be used to specify specific versions of pip, setuptools,
|
||||
# wheel and any other packages which must be installed when pip installs.
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- A new switch ``pip_install_build_packages`` is introduced to allow toggling
|
||||
compiler and development library installation. The legacy behavior of
|
||||
installing the compiler and development libraries is maintained as the
|
||||
switch is enabled by default.
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
pip_install_distro_packages:
|
||||
pip_install_distro_build_packages:
|
||||
- gcc
|
||||
- libffi-devel
|
||||
- openssl-devel
|
||||
|
@ -13,12 +13,13 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
pip_install_distro_packages:
|
||||
pip_install_distro_build_packages:
|
||||
- build-essential
|
||||
- python-setuptools
|
||||
- libffi-dev
|
||||
- libssl-dev
|
||||
- python-dev
|
||||
- python3-dev
|
||||
- python-openssl
|
||||
- python-pyasn1
|
||||
|
||||
|
@ -12,3 +12,14 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
pip_install_distro_build_packages:
|
||||
- build-essential
|
||||
- python-dev
|
||||
- python-setuptools
|
||||
- libffi-dev
|
||||
- libssl-dev
|
||||
- python-dev
|
||||
- python3-dev
|
||||
- python-openssl
|
||||
- python-pyasn1
|
||||
|
Loading…
Reference in New Issue
Block a user