#8475 Azure: tox task and virtualenv 20+
Closed: fixed by abbra. Opened by slev.

virtualenv was rewritten in 20.0.0.
This bites FreeIPA Tox task with:

/usr/bin/python3.9 -m pip install --no-index --disable-pip-version-check --constraint /__w/1/s/.wheelconstraints --find-links /__w/1/s/dist/bundle 'ipaclient[csrgen,otptoken_yubikey,ldap]' pylint
...
Installing collected packages: ipaplatform, ipapython, ipalib, ipaclient
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.9'
Consider using the `--user` option or check the permissions.

virtualenv < 20.0.0 :

$ ls -la virt_test/bin/python
lrwxrwxrwx 1 test test 7 Aug 27 13:24 virt_test/bin/python -> python3
$ ls -la virt_test/bin/python3
-rwxrwxr-x 1 test test 15536 Aug 27 13:24 virt_test/bin/python3

virtualenv >= 20.0.0 :

$ ls -la virt_test/bin/python
lrwxrwxrwx 1 test test 16 Aug 27 13:26 virt_test/bin/python -> /usr/bin/python3

https://github.com/freeipa/freeipa/pull/5047

master:

  • 0d326a9097c6fe5f1eb6d30340aedbe9200c3d37 Azure: Add Rawhide definitions
  • 60ff2841cd74706a5ebd40924f11ad3defaa1750 Azure: Drop dependency on UsePythonVersion task
  • a5b23287aeddd32b129d4c97e6354900c8b931ec Azure: base: Collect both install and uninstall logs
  • a102cfe5faf28b801d2ad3570477ef9dd5c0d5f1 nss: Raise exception earlier on unsupported DB type
  • f3d10871300498150c41f3acc154688f1ee48ceb deps: Require nss-tools for make's fasttest target
  • 30cf59d0ae39e83f3590152aec19e466dbc3623a Azure: Increase verbosity for Tox task
  • fdb227e55ab976fb26ef417df1e4a842d3280f5c tox: Don't expand symlinks
  • 49e643783d22ded7a44d84599020af4e8a3d4d5a dnspython: Add compatibility shim

ipa-4-8:

  • 5d13ef9bfe52442af7d8d39113a8b0a01f5f0bff Azure: Add Rawhide definitions
  • ae219dffbcb71f6ab12b4e4831a1c02e4279f0b8 Azure: Drop dependency on UsePythonVersion task
  • 0ff6b6ee55bfb633b1aee7948c885dfa3f711168 Azure: base: Collect both install and uninstall logs
  • 0a8997ff0be5b3ce67172da9b123a461be83f1e6 nss: Raise exception earlier on unsupported DB type
  • ee661dc7223bf107d30dda39184c402964f2982f deps: Require nss-tools for make's fasttest target
  • 428373f127f69b4fee45b356c765e7a227c8788b Azure: Increase verbosity for Tox task
  • 76502144dd71c957954ac44002d034e691713cb3 tox: Don't expand symlinks
  • ae8b723c1e0f5d66b0fa5e618b7274d872e918d3 dnspython: Add compatibility shim

Metadata Update from @abbra:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata