Skip to content
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

MIPS architectures support #1022

Closed
4 of 5 tasks
messense opened this issue Jul 27, 2022 · 3 comments · Fixed by #1023 or #1024
Closed
4 of 5 tasks

MIPS architectures support #1022

messense opened this issue Jul 27, 2022 · 3 comments · Fixed by #1023 or #1024
Labels
enhancement New feature or request

Comments

@messense
Copy link
Member

messense commented Jul 27, 2022

I saw this PR in home-assistant: home-assistant/core#75318 that complains about lacking of MIPS architectures support in maturin.

@Arnie97 I assume you have MIPS devices that can do testing? Would you like to help us to add MIPS support?

@messense messense added the enhancement New feature or request label Jul 27, 2022
@messense
Copy link
Member Author

FYI, we already added 64-bit RISC-V in #1001.

@Arnie97
Copy link

Arnie97 commented Aug 8, 2022

@messense Great job 🎉

I've tested the latest beta verson on mips(eb), mipsel and 64-bit RISC-V this weekend, and everything worked smoothly. However I did not test the "upload to PyPI" command yet; I did not have a actual maturin project, so I'm trying to figure out how to upload to https://test.pypi.org/.

hass@K3C ~ $ pip3 --version
pip 22.2 from /usr/lib/python3.10/site-packages/pip (python 3.10)

hass@K3C ~ $ uname -m
mips

hass@K3C ~ $ head -15 /proc/cpuinfo
system type             : GRX500 rev 1.2
machine                 : EASY350 ANYWAN (GRX350) Router model
processor               : 0
cpu model               : MIPS interAptiv V2.0
cpu MHz                 : 600.000
BogoMIPS                : 387.07
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : dsp mt eva
shadow register sets    : 1
kscratch registers      : 0


hass@K3C ~ $ pip install --user maturin==0.13.2-beta.2
Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple
Collecting maturin==0.13.2-beta.2
  Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/6d/cf/035fe84d715a6f2af4561ca1f0eb27ba6d4e4745ee47db1063ecb9f03e80/maturin-0.13.2b2.tar.gz (143 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: tomli>=1.1.0 in /usr/lib/python3.10/site-packages (from maturin==0.13.2-beta.2) (2.0.1)
Building wheels for collected packages: maturin
  Building wheel for maturin (pyproject.toml) ... done
  Created wheel for maturin: filename=maturin-0.13.2b2-cp310-cp310-linux_mips.whl size=8559225 sha256=72ba1885bda6129f9e31e4d00a8d2c65328189ec0badcde5fe6c1a6411470c8b
  Stored in directory: /home/hass/.cache/pip/wheels/f9/00/b0/3ed5070408f9c155a7afe4d7bd39cc6f9cfe2d895f01f0ed2e
Successfully built maturin
Installing collected packages: maturin
Successfully installed maturin-0.13.2b2

@messense
Copy link
Member Author

messense commented Aug 8, 2022

I think upload will not work for https pypi instance because ring does not support MIPS yet so we disabled https support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants