Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default distro packages for wheel builds
There are some packages which absolutely must be there for all wheel builds, or for installing without wheels. Without them, pip is totally unable to compile the package due to missing headers or tooling. This patch adds a default, minimal, set of compilers and python headers. Rather than use include_vars, with_first_found as we do in most other roles, we use vars/main and a dict based on ansible_os_family. The role is often included by other roles, and we'd rather not risk the search path being incorrect (there are constant bugs related to this in ansible). Using this mechanism takes away the need for an include_vars task and avoids any pathing issues. Change-Id: I4ef11e47e4d3fe5adc65e9888e660a5a121d205b
- Loading branch information
Jesse Pretorius
committed
Oct 31, 2018
1 parent
d515b0d
commit c54aa81
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
# Copyright 2018, Rackspace US, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# 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. | ||
|
||
_venv_build_base_distro_package_list: | ||
debian: | ||
- cmake | ||
- gcc | ||
- "{{ (venv_python_executable == 'python2') | ternary('pkg-config', 'python3-pkgconfig') }}" | ||
- "{{ (venv_python_executable == 'python2') | ternary('python-dev', 'python3-dev') }}" | ||
redhat: | ||
- autoconf | ||
- cmake | ||
- gcc | ||
- gcc-c++ | ||
- "{{ (venv_python_executable == 'python2') | ternary('python2-devel', 'python3-devel') }}" | ||
suse: | ||
- autoconf | ||
- cmake | ||
- gcc | ||
- gcc-c++ | ||
- "{{ (venv_python_executable == 'python2') | ternary('python-devel', 'python3-devel') }}" |