-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use python's setup.py to compile & install monitor #2
Conversation
@bleykauf in order to address the ideas suggested in linien-org/linien#294 and linien-org/linien#277 (comment), this will help a lot. The current version of this PR makes installation of pyrp3 as simple as
I tested the |
@doronbehar: You tested this on a fresh installation of the image? Otherwise libmonitor.so might still be present from a previous manual installation. |
Also, apparently I did not set up a pre-commit file, and thus CI fails. Also changed base branch to develop. |
On my x86_64 machine, I installed it on a fresh python environment with all 4 dependencies installed as well, and I tested that I can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a quick first look at this with some requests for some changes.
I only had time for a brief look but I don't undertand where libmonitor is compiled.
I also realized that there are two unmerged feature branches that I left abandoned. I will merge them now which will probably result in merge conflicts that we will have to resolve. Sorry for that!
PyRedPitaya/raw_memory.py
Outdated
@@ -3,11 +3,25 @@ | |||
from ctypes import * | |||
import numpy as np | |||
from time import time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import is unused
PyRedPitaya/raw_memory.py
Outdated
@@ -3,11 +3,25 @@ | |||
from ctypes import * | |||
import numpy as np | |||
from time import time | |||
from os import path | |||
import platform | |||
|
|||
if 'PyRedPitayaTest' in list(sys.modules.keys()): | |||
from PyRedPitayaTest import libmonitor_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a relict from earlier version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talking about PyRedPitayaTest
Merged #3 As expected, there are some merge conflicts... |
@doronbehar I think applying your changes to the current state of the |
@doronbehar: Already resolved in github's editor. Thought this would automatically merge. |
Currently |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, now I understand where libmonitor is compiled. Did not know about Extension
before :)
I rebased this myself onto |
With this change, putting |
Find monitor shared object file using a relative path to `__file__`.
for more information, see https://pre-commit.ci
There are now again conflicts within this branch. Please don't force-push, makes everything pretty messy. |
Rebased and merged. Will change the open issues from the review separately. |
Find monitor shared object file using a relative path to
__file__
.