-
Notifications
You must be signed in to change notification settings - Fork 175
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
bitarray dependency is unfortunate #242
Comments
Comment by emilazy Maybe Glasgow's |
Comment by whitequark I'm not going to touch pysim until 0.1, and there's a complete rewrite planned for 0.2 that will remove the dependency on Note that Glasgow depends on both anyway. |
Comment by emilazy Glasgow only uses |
Comment by whitequark I already tried to do that during migration to |
Comment by emilazy Fair enough; but in any case, using Glasgow on PyPy is a lot more niche than using nmigen on PyPy, and it has a lot more dependencies regardless. |
Comment by xobs I thought I'd take a look at nmigen (migrating from migen), and I just ran into this issue.
I'm not actually using the simulator, so this dependency is definitely unfortunate. |
Comment by whitequark @xobs Have you actually installed nMigen's dependencies? Because there is no goal to reduce the amount of dependencies to zero. |
Comment by xobs @whitequark I've cloned the repository next to the existing I was hoping |
Comment by whitequark @xobs A user of nMigen is expected to be familiar with the absolute basics of Python package management. That's like saying "Yosys has dependencies, so I will stick to Vivado for now". I mean, sure, you can do that, but that's not a problem with Yosys or nMigen, it is a problem with your lack of desire to learn the fundamentals of the programming toolkit you are using. |
Comment by xobs @mithro I don't install migen, I check it out. I don't like using For example: C:\Users\smcro>python -m pip install git+https://github.com/m-labs/nmigen.git
Collecting git+https://github.com/m-labs/nmigen.git
Cloning https://github.com/m-labs/nmigen.git to c:\users\smcro\appdata\local\temp\pip-y_btvmjq-build
Unknown requires Python '~=3.6' but the running Python is 3.5.2
You are using pip version 9.0.1, however version 19.2.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
C:\Users\smcro> With |
Comment by whitequark @xobs In your example pip correctly tells you that nMigen requires Python 3.6, which is written in its README file:
|
Comment by xobs I also have the official 3.7.3 installed: C:\Users\smcro>python --version
Python 3.7.3
C:\Users\smcro>python -m ensurepip --default-pip
D:\Software\ecp5-toolchain-windows-v1.5\bin\python.exe: No module named ensurepip
C:\Users\smcro>python -m pip install git+https://github.com/m-labs/nmigen.git
D:\Software\ecp5-toolchain-windows-v1.5\bin\python.exe: No module named pip
C:\Users\smcro> |
Comment by whitequark OK, so what you're actually asking for is reliable installation instructions for Windows. I agree that this is something that is currently not provided but should be (especially given that you will also need Yosys to do anything). |
Comment by plaes
Since 3.3 Python has venv module which allows one to have different application-specific package installs. |
Comment by programmerjake maybe the windows installation issue should be in a separate issue |
Comment by whitequark @xobs I've opened m-labs/nmigen#244 to track the Windows installation problems. |
Comment by whitequark @xobs FYI as of today, nMigen master is pure Python. You only need to install |
Issue by emilazy
Monday Sep 30, 2019 at 00:22 GMT
Originally opened as m-labs/nmigen#242
It's currently broken in PyPy and I feel like I've managed to poke it into memory unsafe behaviour from the CPython REPL before. Only pysim uses it so I imagine it could pretty easily be replaced with a combination of Python's bigints and lists.
The text was updated successfully, but these errors were encountered: