These are chat archives for dropbox/pyston

5th
Feb 2016
lesshaste
@lesshaste
Feb 05 2016 14:26
hi...can I suggest every 3 months is a good max time to add a blog post :) ?
Sean Farley
@seanfarley
Feb 05 2016 18:17
Hi all, newbie question: I have cloned and finished the build but seem to be stuck with using pyston for virtualenv / setuptools. Surely, I'm missing some kind of easy step?
Kevin Modzelewski
@kmod
Feb 05 2016 21:22
@lesshaste good idea :) anything in particular you would like to see posts about?
@seanfarley how are things stuck?
one thing we should add to the instructions are that there are additional dependencies to pull if you want to run the tests; can you try git submodule update --init test/lib/virtualenv?
Kevin Modzelewski
@kmod
Feb 05 2016 21:31
oh nevermind, you shouldn't need to do that -- make check will know whether or not you have our virtualenv checked out
Sean Farley
@seanfarley
Feb 05 2016 22:00
@kmod Sorry, I missed your notification
The 'make check' seemed fine when I first ran it. I think it's more of me not understanding how to run virtualenv -p /path/to/pyston pve
Because it errors out at trying to install pip / setuptools
Kevin Modzelewski
@kmod
Feb 05 2016 22:04
oh, yes unfortunately you need our modified virtualenv
Sean Farley
@seanfarley
Feb 05 2016 22:04
Ah, that'd be what I missed
Kevin Modzelewski
@kmod
Feb 05 2016 22:04
virtualenv has a section that is something like
if is_pypy:
  do_pypy_setup()
elif is_jython:
  do_jython_setup()
else:
  do_cpython_setup()
Sean Farley
@seanfarley
Feb 05 2016 22:05
ha
Kevin Modzelewski
@kmod
Feb 05 2016 22:06
so unfortunately there isn't a good way around just adding our own section
well, maybe eventually we'll think of something very clever
but for now we need the modified virtualenv
Sean Farley
@seanfarley
Feb 05 2016 22:06
If only someone or maybe even four people wrote some kind of book about these kind of patterns
Yeah, I gotcha
Is there any special way to install this virtualenv? Or just the usual setup.py?
Kevin Modzelewski
@kmod
Feb 05 2016 22:10
I think you can just do
git submodule update --init test/lib/virtualenv
test/lib/virtualenv/virtualenv.py -p test_env pyston_release
Sean Farley
@seanfarley
Feb 05 2016 22:10
:thumbsup:
Kevin Modzelewski
@kmod
Feb 05 2016 22:11
I've never tried installing the actual virtualenv library itself
Sean Farley
@seanfarley
Feb 05 2016 22:11
How do you get pip/setuptools to work?
Kevin Modzelewski
@kmod
Feb 05 2016 22:11
should be just the normal virtualenv deal after it's installed
test_env/bin/pip install requests
Sean Farley
@seanfarley
Feb 05 2016 22:12
_<
Kevin Modzelewski
@kmod
Feb 05 2016 22:12
or . test_env/bin/activate; pip install requests
Sean Farley
@seanfarley
Feb 05 2016 22:12
That ... is almost too easy
I totally missed that
Wait, I guess I didn't miss that. You just use normal pip with pyston?
Kevin Modzelewski
@kmod
Feb 05 2016 22:15
Well, I think for both of the commands I gave, you should end up running the pip at test_env/bin/pip
We used to have modifications to pip but I think we have undone them, not sure
Sean Farley
@seanfarley
Feb 05 2016 22:15
Righto, I got that part. I meant more of how you do dev.
Ah
Now, on to trying to get these extensions to compile :-)
Thanks for the help, @kmod
Kevin Modzelewski
@kmod
Feb 05 2016 22:27
np! let us know if you run into anything else :)
Sean Farley
@seanfarley
Feb 05 2016 22:27
Sure, will do. I think it's more of a 'hold onto my butt' kind of ride right now.
aka c (and some cffi) code