Skip to content

Instantly share code, notes, and snippets.

@snaury
Created November 2, 2015 19:11
Show Gist options
  • Save snaury/ea167713b1804ffbaf5a to your computer and use it in GitHub Desktop.
Save snaury/ea167713b1804ffbaf5a to your computer and use it in GitHub Desktop.
#include <greenlet/greenlet.h>
from distutils.core import setup
from distutils.extension import Extension
setup(
name='foobar',
ext_modules=[Extension('foobar', sources=['foobar.c'])],
)
#!/bin/bash
set -e
(cd $HOME/src/Python-3.5.0 && ./configure --prefix=/tmp/python-3.5.0 && make && make install)
/tmp/python-3.5.0/bin/pyvenv /tmp/myenv
/tmp/myenv/bin/pip install greenlet
/tmp/myenv/bin/python3 setup.py build_ext -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment