Skip to content

Commit

Permalink
Merge pull request #38 from makkus/configure_opts
Browse files Browse the repository at this point in the history
Fixes #37, add support for PYTHON_CONFIGURE_OPTS
  • Loading branch information
Maxim Avanov authored Apr 17, 2019
2 parents a94545f + c02f88f commit f6cfe91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ pyenv_init_options: "{% if pyenv_env != 'user' %}--no-rehash{% endif %}"

pyenv_update: no

# additional options for the build process, e.g "--enable-shared"
pyenv_python_configure_opts: ""

pyenv_debian_packages:
- build-essential
- git
Expand Down
2 changes: 1 addition & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
when: pyenv_update

- name: Install Python interpreters "{{ pyenv_python_versions }}"
shell: . {{ pyenv_path }}/.pyenvrc && pyenv install {{ item }}
shell: . {{ pyenv_path }}/.pyenvrc && env PYTHON_CONFIGURE_OPTS="{{ pyenv_python_configure_opts }}" pyenv install {{ item }}
creates="{{ pyenv_path }}/versions/{{ item }}/bin/python"
with_items: "{{ pyenv_python_versions }}"

Expand Down

0 comments on commit f6cfe91

Please sign in to comment.