Skip to content

Allow bdist_wheel working without ctypes#613

Merged
agronholm merged 5 commits intopypa:mainfrom
youknowone:no-ctypes
May 6, 2024
Merged

Allow bdist_wheel working without ctypes#613
agronholm merged 5 commits intopypa:mainfrom
youknowone:no-ctypes

Conversation

@youknowone
Copy link
Copy Markdown
Contributor

Hi, I am a developer of RustPython project.

Currently RustPython barely can run pip, but installing projects usually fails due to lack of ctypes - which is mostly not mandatory.

This patch makes ctypes optional in most of platforms and situations.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.09%. Comparing base (4ec2ae3) to head (9de24bd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #613   +/-   ##
=======================================
  Coverage   71.09%   71.09%           
=======================================
  Files          13       13           
  Lines        1083     1083           
=======================================
  Hits          770      770           
  Misses        313      313           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment thread tests/test_bdist_wheel.py Outdated
@youknowone
Copy link
Copy Markdown
Contributor Author

@henryiii Could you review it again?

Comment thread tests/test_bdist_wheel.py Outdated
Co-authored-by: Alex Grönholm <alex.gronholm@nextday.fi>
Comment thread tests/test_bdist_wheel.py Outdated
@agronholm agronholm merged commit 376373b into pypa:main May 6, 2024
@youknowone youknowone deleted the no-ctypes branch May 8, 2024 20:05
@carrt123
Copy link
Copy Markdown

Can rustpython use pip to download libraries that rely on C extensions?
I encountered the error"ModuleNotFoundError: No module named '_ctypes'when downloading some libraries that rely on C extensions. For example, download: ujson, markupsafe.
but, those libraries written by pure cpython I can download normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants