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

added hy 1.0a4 #490

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions packages/hy/1.0a4/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

PREFIX=$(realpath $(dirname $0))

mkdir -p build

cd build

curl "https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz" -o python.tar.gz
tar xzf python.tar.gz --strip-components=1
rm python.tar.gz

./configure --prefix "$PREFIX" --with-ensurepip=install
make -j$(nproc)
make install -j$(nproc)

cd ..

rm -rf build

bin/pip3 install numpy scipy pandas pycrypto whoosh bcrypt passlib sympy
bin/pip3 install --pre hy==1.0a4 hyrule==0.1 toolz multipledispatch funcy funcy_chain pyrsistent
1 change: 1 addition & 0 deletions packages/hy/1.0a4/environment
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH
5 changes: 5 additions & 0 deletions packages/hy/1.0a4/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"language": "hy",
"version": "1.0a4",
"aliases": ["hy", "hy1.0", "hy1.0a4"]
}
3 changes: 3 additions & 0 deletions packages/hy/1.0a4/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

hy "$@"
16 changes: 16 additions & 0 deletions packages/hy/1.0a4/test.hy
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(print (cut "abcdef" 1 4))

(defn test [a b [c None] [d "x"] #* e]
[a b c d e])
(print (test 1 2)) ; => [1, 2, None, 'x', ()]
(print (test 1 2 3 4 5 6 7)) ; => [1, 2, 3, 4, (5, 6, 7)]

(import math)
(print (math.sqrt 2))

(import hyrule [inc])
(require hyrule [assoc])
(print (list (map inc [1 2 3])))
(setv d {})
(assoc d "a" 1 "b" 2)
(print d)
1 change: 1 addition & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ Content-Type: application/json
`groovy`,
`haskell`,
`husk`,
`hy`,
`iverilog`,
`japt`,
`java`,
Expand Down