Skip to content

Instantly share code, notes, and snippets.

@lagenorhynque
Last active January 12, 2019 06:41
Show Gist options
  • Select an option

  • Save lagenorhynque/5356eed5307564f1fc675e08f163a618 to your computer and use it in GitHub Desktop.

Select an option

Save lagenorhynque/5356eed5307564f1fc675e08f163a618 to your computer and use it in GitHub Desktop.
lagenorhynchus@lagenorhynque-mbp:code$ mkdir hy-playground
lagenorhynchus@lagenorhynque-mbp:code$ cd hy-playground/
lagenorhynchus@lagenorhynque-mbp:hy-playground$ pipenv install hy
Creating a virtualenv for this project…
Pipfile: /Users/lagenorhynchus/code/hy-playground/Pipfile
Using /usr/local/Cellar/pipenv/2018.11.26/libexec/bin/python3.7 (3.7.2) to create virtualenv…
⠇ Creating virtual environment...Already using interpreter /usr/local/Cellar/pipenv/2018.11.26/libexec/bin/python3.7
Using real prefix '/usr/local/Cellar/python/3.7.2/Frameworks/Python.framework/Versions/3.7'
New python executable in /Users/lagenorhynchus/.local/share/virtualenvs/hy-playground-K-WGms8b/bin/python3.7
Also creating executable in /Users/lagenorhynchus/.local/share/virtualenvs/hy-playground-K-WGms8b/bin/python
Installing setuptools, pip, wheel...
done.
✔ Successfully created virtual environment!
Virtualenv location: /Users/lagenorhynchus/.local/share/virtualenvs/hy-playground-K-WGms8b
Creating a Pipfile for this project…
Installing hy…
Adding hy to Pipfile's [packages]…
✔ Installation Succeeded
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
✔ Success!
Updated Pipfile.lock (98c614)!
Installing dependencies from Pipfile.lock (98c614)…
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 7/7 — 00:00:02
To activate this project's virtualenv, run pipenv shell.
Alternatively, run a command inside the virtualenv with pipenv run.
lagenorhynchus@lagenorhynque-mbp:hy-playground$ tree
.
├── Pipfile
└── Pipfile.lock
0 directories, 2 files
lagenorhynchus@lagenorhynque-mbp:hy-playground$ pipenv shell
Launching subshell in virtual environment…
. /Users/lagenorhynchus/.local/share/virtualenvs/hy-playground-K-WGms8b/bin/activate
lagenorhynchus@lagenorhynque-mbp:hy-playground$ . /Users/lagenorhynchus/.local/share/virtualenvs/hy-playground-K-WGms8b/bin/activate
(hy-playground) lagenorhynchus@lagenorhynque-mbp:hy-playground$ which hy
/Users/lagenorhynchus/.local/share/virtualenvs/hy-playground-K-WGms8b/bin/hy
(hy-playground) lagenorhynchus@lagenorhynque-mbp:hy-playground$ hy
hy 0.15.0 using CPython(default) 3.7.2 on Darwin
=> (lfor x (range 5) (* 2 x))
[0, 2, 4, 6, 8]
=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment