-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add pyjion
#17937
Merged
Merged
Add pyjion
#17937
Changes from 37 commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
278bd26
Add pyjion
dhirschfeld d99f9c8
lint
dhirschfeld b467384
Build for all platforms
dhirschfeld a7cc965
Add `tonybaloney` as maintainer
dhirschfeld b605f4b
Add `dotnet/runtime` license
dhirschfeld a679435
Try enabling tests
dhirschfeld e8bef65
Force python 3.10 (for testing)
dhirschfeld fa4317c
Unskip (for testing)
dhirschfeld db1560e
Fix typo
dhirschfeld ecd5548
Disable tests
dhirschfeld 41d83f8
Change pin
dhirschfeld 7101769
Add `cxx` compiler
dhirschfeld 5e55982
Add `CMAKE_GENERATOR` env var
dhirschfeld e501f18
Try using `CMAKE_MAKE_PROGRAM`
dhirschfeld a808836
wip
dhirschfeld 2385e86
Try adding `make` to build deps
dhirschfeld c1328a4
Add `libclrjit.so` to `missing_dso_whitelist`
dhirschfeld 47ca906
Try forcing `ninja`
dhirschfeld a5df7c5
Export `CMAKE_GENERATOR` env var
dhirschfeld 6a601b2
Remove debug cruft
dhirschfeld 24cf525
Try enabling tests
dhirschfeld a828b5e
Debug `pytest`
dhirschfeld b33ffdb
wip
dhirschfeld e346111
wip
dhirschfeld 3920195
Specify `source_files` for tests
dhirschfeld 3e842d2
Remove debug cruft
dhirschfeld 0d6cbbf
Add all tests
dhirschfeld c3199f4
Add some colour
dhirschfeld 4cd9cd9
Skip external tests
dhirschfeld 7f3bfe9
Re-enable skip and remove Python pins
dhirschfeld d9432fc
Move `dotnet` to host deps
dhirschfeld f551622
Link to exact commit for license file
dhirschfeld b7e93e6
Re-enable skip
dhirschfeld 68cf978
Use `git_rev`
dhirschfeld f1f3538
Re-run the tests
dhirschfeld cc3b719
Add `libclrjit.so` to the `missing_dso_whitelist`
dhirschfeld 8f44c0d
Re-enable skip
dhirschfeld ef6be27
Update recipes/pyjion/meta.yaml
dhirschfeld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{% set name = "pyjion" %} | ||
{% set version = "1.2.6" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
git_url: https://github.com/tonybaloney/Pyjion.git | ||
# https://github.com/tonybaloney/Pyjion/tree/1.2.6 | ||
git_rev: 66a772d48825e2511b9c6e8bbcc739d84f84e800 | ||
dhirschfeld marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
|
||
build: | ||
skip: True # [not linux or py<310] | ||
number: 0 | ||
missing_dso_whitelist: | ||
- '*/libclrjit.so' # [linux] | ||
script: | | ||
chrisburr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
git submodule update --init --recursive | ||
export CMAKE_GENERATOR="Ninja" | ||
{{ PYTHON }} -m pip install . -vv | ||
chrisburr marked this conversation as resolved.
Show resolved
Hide resolved
|
||
entry_points: | ||
- pyjion = pyjion.__main__:main | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('cxx') }} | ||
- cmake | ||
dhirschfeld marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- git | ||
- ninja | ||
host: | ||
- python | ||
dhirschfeld marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- dotnet >=6 | ||
- pip | ||
- setuptools | ||
- wheel | ||
- scikit-build | ||
run: | ||
- python | ||
- dotnet >=6 | ||
|
||
test: | ||
imports: | ||
- pyjion | ||
requires: | ||
# - distorm3 | ||
- django | ||
- flask | ||
- numpy | ||
- pandas | ||
- pyyaml | ||
- pytest >=6.2.5 | ||
- rich | ||
- sqlalchemy | ||
source_files: | ||
- Tests/** | ||
commands: | ||
- pytest -v --color=yes Tests/ --opt-level 0 | ||
- pytest -v --color=yes Tests/ --opt-level 1 | ||
- pytest -v --color=yes Tests/ --opt-level 2 | ||
# External tests require distorm3 | ||
# - pytest -v --color=yes Tests/ --opt-level 0 --external | ||
# - pytest -v --color=yes Tests/ --opt-level 1 --external | ||
|
||
about: | ||
home: https://github.com/tonybaloney/Pyjion | ||
license: MIT | ||
license_family: MIT | ||
license_file: LICENSE.md | ||
summary: 'Pyjion - A JIT for Python based upon CoreCLR' | ||
description: | | ||
Pyjion, a JIT extension for CPython that compiles your Python code | ||
into native CIL and executes it using the .NET CLR. | ||
dev_url: https://github.com/tonybaloney/Pyjion | ||
|
||
extra: | ||
recipe-maintainers: | ||
- dhirschfeld | ||
- tonybaloney |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## `dotnet/runtime` License | ||
|
||
*Source:* https://github.com/dotnet/runtime/blob/4822e3c3aa77eb82b2fb33c9321f923cf11ddde6/LICENSE.TXT | ||
|
||
---- | ||
|
||
``` | ||
The MIT License (MIT) | ||
|
||
Copyright (c) .NET Foundation and Contributors | ||
|
||
All rights reserved. | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
``` |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The commit hash (tonybaloney/Pyjion@66a772d) could be used instead if there are concerns the tag could change?