Install from source

$ pip install gpaw/  # not "pip install gpaw" !!!
Processing ./gpaw
...
Installing collected packages: gpaw
  Attempting uninstall: gpaw
    Found existing installation: gpaw 21.1.0
    Uninstalling gpaw-21.1.0:
      Successfully uninstalled gpaw-21.1.0
    Running setup.py install for gpaw ... done
Successfully installed gpaw-21.1.1b1

Python files and _gpaw.cpython-38-x86_64-linux-gnu.so will now be in /tmp/venv/lib/python3.8/site-packages/.

Let’s do an editable install instead:

$ pip install -e gpaw/
...
Successfully installed gpaw-21.1.1b1
$ cat venv/lib/python3.8/site-packages/easy-install.pth
/tmp/gpaw
$ ls /tmp/gpaw/_gpaw*.so
/tmp/gpaw/_gpaw.cpython-38-x86_64-linux-gnu.so

Python will now find the gpaw and _gpaw modules in your git-clone folder.

Note

Remember to pip install -e gpaw/ when the C-code changes.