nipy/niwidgets

Building from source?

cfhammill opened this issue · 5 comments

Hi niwidgets developers, currently I am only able to get your package via a pip wheel. The instructions in the README to run

pip install git+git://github.com/nipy/niwidgets/

doesn't work due to a missing setup.py. Any advice on how to build from git/source?

Hi,

Apologies, the instructions must be outdated. The setup.py was removed a while ago and you now need to install it using poetry from source. For documentation on the install, see here: https://python-poetry.org/docs/cli/#install

To get this to work, you would have to:

  • clone the repository
  • change dir into the repository
  • (optionally) create a new virtual environment
  • install poetry using pip install poetry
  • install niwidgets using poetry install

Apologies for the convoluted setup.

Ok awesome, thanks so much @janfreyberg, would you like me to PR these instructions into the README?

That would be great, thank you!

@janfreyberg thanks for this. Would you be able to add a Dockerfile so we can all reproduce the build steps in the same environment?