ben
2018-10-9 16:51:40

@ben has joined the channel


ben
2018-10-9 16:52:04

hi Pycket, what version of Python should I use?


ben
2018-10-9 16:52:43

pypy says it wants 2.7.13 or 3.5.3 (https://pypy.org/), but the Pycket readme doesn’t specify


ben
2018-10-9 16:53:35

also, fyi, this repo was very helpful the last time I tried to use Pycket https://github.com/btlachance/pycket-docker


samth
2018-10-9 16:55:25

@ben I use 2.7.15 which is what I get as python


samth
2018-10-9 16:55:37

also I hope things have gotten easier


ben
2018-10-9 16:56:00

last time I think my problem was with pypy


ben
2018-10-9 16:56:51

anyway, the docker was a quick, zero-effort solution that I was happy to find


ben
2018-10-9 18:50:27

wow pypy takes a long time to build


cadr
2018-10-9 19:02:28

@ben Yeah pypy takes around ~2 hours to build, though you should be able to use a prebuilt binary with the 2.7.13/15 checkout (which I’m pretty sure is what our test setup does)


ben
2018-10-9 19:05:16

how do I get a prebuilt binary?


ben
2018-10-9 19:05:22

I tried following the Pycket instructions (https://github.com/pycket/pycket)


ben
2018-10-9 19:05:27

and couldn’t do the 3rd step


ben
2018-10-9 19:05:47

because #/usr/bin/env pypy led to “pypy not found” or something


ben
2018-10-9 19:06:07

I didn’t see a pypy executable in my pypy repo, so I started building


cadr
2018-10-9 19:07:23

Yeah you can either build the binary which should be around /pypy/goal/pypy-c, or you can download a prebuild binary and use it alongside the 2.7.13 checkout


cadr
2018-10-9 19:07:44

Here’s the link that our test setup uses to get the binary https://bitbucket.org/pypy/pypy/downloads/pypy2-v6.0.0-linux64.tar.bz2


ben
2018-10-9 19:08:46

should that link be in the pycket readme? or, is it in the pypy readme somehwere


cadr
2018-10-9 19:11:17

Well, you can use any pypy you want to translate, either you can get the latest pypy checkout and build it yourself, or use a prebuilt binary like in the link above, you can even use the CPython to do the translation (it’ll take very long though)


cadr
2018-10-9 19:12:04

I agree that we should probably make the README a little clearer on how to get the PYPY running, we seem to be assuming that


samth
2018-10-9 19:12:40

do you actually need pypy to translate? I think you can do it with python


cadr
2018-10-9 19:14:57

@samth sure, in fact if you don’t have PYPY binary in the environment, then make pycket-c is automatically going to use cpython


samth
2018-10-9 19:15:54

@ben I think you should just use the various make targets


samth
2018-10-9 19:16:04

@cadr I think we should stop putting the manual instructions first


ben
2018-10-9 19:16:21

ok


ben
2018-10-10 01:36:26

hmm, I’ve set PLTEXECFILE, but when I try to run pycket-c I get “sh: racket: command not found”


ben
2018-10-10 01:37:23

this is because I don’t have a racket executable in my path — but I’d rather tell Pycket exactly what racket to use instead of it looking in my path


samth
2018-10-10 02:28:18

I think you should just arrange for racket to be in your path


github2-x
2018-10-10 02:36:37

ben
2018-10-10 02:38:52

does the pycket package depend on Racket 7? I tried make setup with a Racket based on 6.12 and got: pycket/pycket-lang/zo-expand.rkt:5:18: only-in: identifier `compiled-position->primitive'