I want to make some changes to the build that creates this path
/nix/store/b7m9y5mxvi54bxhl8j75rxhmfrnj2m07-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/__pycache__/cacheprovider.cpython-38.opt-2.pyc
I tried cloning nixpkgs and running nix-shell --pure -A python3Packages.pytest
but it created the wrong path:
/nix/store/rjwzcqrb4kyrc8yvs0fznw1nss3272md-python3.8-pytest-6.1.2/lib/python3.8/site-packages/_pytest/__pycache__/cacheprovider.cpython-38.pyc
which doesn’t have the opt-2
path component (corresponding to the PYTHONOPTIMIZE
level). How can I run the build that makes that path?