NeuroTechX / EEG-ExPy

EEG Experiments in Python
https://neurotechx.github.io/EEG-ExPy/
BSD 3-Clause "New" or "Revised" License
437 stars 124 forks source link

build: moved to pyproject.toml/poetry #22

Closed ErikBjare closed 2 years ago

ErikBjare commented 3 years ago

Fixes #19, and more.

Changes

TODO (if requested)

I haven't done any extensive testing, but all seems to work as expected.

JohnGriffiths commented 3 years ago

Hi Erik.

This great - thanks!

Will do some review and testing very soon.

In the meantime, a few other comments:

ErikBjare commented 3 years ago

Would this also work with a pip install git+https://github.com/neurotechx/eeg-notebooks? We would like to have that working so that an explicit git clone isn't necessary. I tried this once and it failed; not sure why.

Yes, just tested (but with https://github.com/ErikBjare/eeg-notebooks).

Edit: And reproduced the original issue in https://github.com/NeuroTechX/eeg-notebooks/issues/19#issuecomment-724560996, looks like it's just a missing __init__.py.

...and eventually (soon) we would like to put on pypi so it's just pip install

Poetry will make that a lot easier for you :)

Yes, CI building for the docs is something we want to do also.

I'll take a look at it then, should be pretty easy.

Edit: Done.

ErikBjare commented 3 years ago

@JadinTredup Should be ready for review now. The CI can be inspected at https://github.com/ErikBjare/eeg-notebooks/actions (it should work automatically in this repo too, once merged).

ErikBjare commented 3 years ago

I've extracted the CI stuff to a seperate PR #24, I'd appreciate a quick merge, so I can rebase this branch on top of upstream master.

ErikBjare commented 3 years ago

PR has been rebased on master following the merge of #24.

Edit: Looks like the Windows build decided to start failing in this branch (see https://github.com/ErikBjare/eeg-notebooks/runs/1417206759?check_suite_focus=true) since it complains about missing Visual C++ build tools (which I thought should be included?). Weird.

ErikBjare commented 2 years ago

Trying to salvage this PR, but bumping into ridiculous dependency resolution times (caused by psychopy's ridiculous number of deps):

image

So will take at least 50min. Hoping it finishes soon...

I commented out psychopy to test, and it resolved in under 20min (iirc).

ErikBjare commented 2 years ago

Still not resolved, eating RAM and CPU like crazy:

image

ErikBjare commented 2 years ago

lol, the OOM killer ended up killing it:

image

dmesg:

image

Not sure what to do about this, I guess ask in https://github.com/python-poetry/poetry/issues/2094 or bring it up with the psychopy devs if they can loosen their dep requirements? (or whatever is taking forever)

I guess I could try it again on my workstation with 64GB RAM + 64GB swap + 1Gbps? But would it even work?

Edit: Running again now with poetry update -vvv, not sure why I didn't do this sooner,

ErikBjare commented 2 years ago

Alright, I finally got a lock after ~1100 seconds on a different run, after I locked down some deps that I resolved by hand.