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

Update twisted to 14.0.0 #237

Closed
lfdversluis opened this issue May 16, 2014 · 3 comments
Closed

Update twisted to 14.0.0 #237

lfdversluis opened this issue May 16, 2014 · 3 comments

Comments

@lfdversluis
Copy link
Contributor

I've tried to update Twisted since the release is already 14.0.0 now.
Yet updating the URL and md5 is not enough and I have little understand what is done in the build function with cython.

@kived
Copy link
Contributor

kived commented May 16, 2014

We use Twisted 13.0.0 for our application. I would think 14.0.0 would work as well, but if it doesn't, you could try 13.0.0 instead. ;) I had to change the PYTHONPATH to get it to build though. Beyond that, all you need to do is change the version number.

diff --git a/recipes/twisted/recipe.sh b/recipes/twisted/recipe.sh
index ea55340..77364db 100644
--- a/recipes/twisted/recipe.sh
+++ b/recipes/twisted/recipe.sh
@@ -1,6 +1,7 @@
 #!/bin/bash

-VERSION_twisted=${VERSION_twisted:-11.1}
+VERSION_twisted=${VERSION_twisted:-13.0}
 URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.0.tar.bz2
 DEPS_twisted=(zope)
 MD5_twisted=
@@ -25,11 +26,11 @@ function build_twisted() {
        export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
        export LDSHARED="$LIBLINK"

-       export PYTHONPATH=$BUILD_hostpython/Lib/site-packages
+       export PYTHONPATH=$BUILD_hostpython/Lib/site-packages:$BUILD_hostpython/build/lib.linux-x86_64-2.7

        # fake try to be able to cythonize generated files
        $HOSTPYTHON setup.py build_ext

@lfdversluis
Copy link
Contributor Author

Sounds good, will try tomorrow and post the result.

@lfdversluis
Copy link
Contributor Author

@kived I've changed the version to 14.0 just as you pointed out and it runs fine.. Thanks for the share!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants