Skip to content

Commit

Permalink
Merge pull request #16 from brabster/pip_require_virtualenv
Browse files Browse the repository at this point in the history
check PIP_REQUIRE_VIRTUALENV
  • Loading branch information
brabster authored Oct 1, 2024
2 parents 0495dea + 3e4b952 commit 1f854b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
- name: check
shell: bash -l {0}
run: |
su - tester
alias
git config --list
python --version
clamscan --version
su - tester -c "alias"
su - tester -c "git config --list"
su - tester -c "python --version"
su - tester -c "! pip install jsonschema # should not work because no venv"
su - tester -c "clamscan --version"
1 change: 1 addition & 0 deletions roles/pyenv/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
path: '{{ user_profile }}'
marker: '# {mark} ANSIBLE_PYENV'
block: |
export PIP_REQUIRE_VIRTUALENV=true
export PATH="{{ user_home }}/.pyenv/shims:{{ user_home }}/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
Expand Down
2 changes: 0 additions & 2 deletions workstation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
- role: ./roles/gcloud
- role: ./roles/expressvpn
- role: ./roles/pyenv
- role: ./roles/pipx
- role: ./roles/pipenv
- role: ./roles/git
- role: ./roles/clamav
- role: ./roles/xfce
Expand Down

0 comments on commit 1f854b9

Please sign in to comment.