Skip to content

Commit

Permalink
Merge pull request #86 from srz-zumix/feature/pypy2and3
Browse files Browse the repository at this point in the history
add pypy2,pypy3
  • Loading branch information
srz-zumix authored Jan 14, 2022
2 parents bc7bbe2 + 5cc85e2 commit 47c3e0c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ Import files/modules required for runtime are automatically added to the file li
(wandbox -l Python -c cpython-*)
* wandbox-pypy
(wandbox -l Python -c pypy-*)
* wandbox-pypy2
(wandbox -l Python -c pypy-2*)
* wandbox-pypy3
(wandbox -l Python -c pypy-3*)

#### Python Example

Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
'wandbox-python2 = wandbox.__python__:python2',
'wandbox-python3 = wandbox.__python__:python3',
'wandbox-pypy = wandbox.__python__:pypy',
'wandbox-pypy2 = wandbox.__python__:pypy2',
'wandbox-pypy3 = wandbox.__python__:pypy3',
'wandbox-rscript = wandbox.__r__:main',
'wandbox-ruby = wandbox.__ruby__:main',
'wandbox-mruby = wandbox.__ruby__:mruby',
Expand Down
8 changes: 8 additions & 0 deletions wandbox/__python__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,13 @@ def pypy():
python('pypy-*')


def pypy2():
python('pypy-2*')


def pypy3():
python('pypy-3*')


if __name__ == '__main__':
main()

0 comments on commit 47c3e0c

Please sign in to comment.