-
Notifications
You must be signed in to change notification settings - Fork 915
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Copy abc
stuff for pyosys to enable use of the abc
pass
#4901
base: main
Are you sure you want to change the base?
Conversation
Has this broken since #4643? Or is that specific to building wheels, and if so does this break that? |
That is specific to building wheels. This fixes the same issue for |
Okay, seems fine to me then. @mmicko are you familiar with how the wheels are built? Does this seem likely to break anything there or is it good to merge? |
@donn could you please check if this is affecting wheels build ? |
@mmicko I'll test, but… @akashlevy The wheels should already include both yosys-abc and share. How are you building them? Line 76 in 38f8583
|
I'm building with |
|
Yes, I guess the real issue is that the search path does not get configured correctly in the general case (which was what #4643 was attempting to fix I guess?) For example, the workflow I use (which is pretty standard for Python development AFAIK) is to have a Python virtual environment called The best solution I could see is to just copy these resources right into the |
If we think it makes most sense to use the wheel, then perhaps we should use a wheel-style installation for |
Even if you installed it into a venv, as long as you set Line 934 in 38f8583
The fact that's not working suggests a deeper issue. Would you kindly share what installation commands you're running exactly? Just (Also, the conventional way to install something into a At any rate, the wheels still work great with this PR. |
Here's what I have been using:
Honestly, now that I look at this again, it does feel quite roundabout. I think it makes way more sense to just do I propose we remove the legacy |
That seems like the better approach here. |
What are the reasons/motivation for this change?
Pyosys is incapable of using the
abc
pass without this change when usingmake install ENABLE_PYOSYS=1
, as the binary is missing.Explain how this is achieved.
Copy over
yosys-abc
binary andshare
directory to Pyosys install directory.If applicable, please suggest to reviewers how they can test the change.
Try calling the
abc
pass inpyosys
before and after the change when usingmake install ENABLE_PYOSYS=1
with a virtual environment