#18397: upgrade Python to 2.7.9
-------------------------------------+-------------------------------------
Reporter: dimpase | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.7
Component: packages: | Resolution:
standard | Merged in:
Keywords: | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: u/dimpase/18397 | b5c3c247c1f934d7f9008b792596e9573e74b091
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by dimpase):
On OSX I cannot install pyopenssl (it does work on Linux though), it ends
with some weird error:
{{{
sage --pip install pyopenssl
...
building '_Cryptography_cffi_2a871178xb3816a41' extension
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-I/usr/local/src/sage/sage/local/include/python2.7 -c
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_2a871178xb3816a41.c
-o
build/temp.macosx-10.9-x86_64-2.7/src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_2a871178xb3816a41.o
In file included from
/System/Library/Frameworks/Security.framework/Headers/SecDigestTransform.h:28:0,
from
src/cryptography/hazmat/bindings/__pycache__/_Cryptography_cffi_2a871178xb3816a41.c:236:
/System/Library/Frameworks/Security.framework/Headers/SecTransform.h:579:15:
error: expected identifier or '(' before '^' token
typedef void (^SecMessageBlock)(CFTypeRef message, CFErrorRef error,
^
/System/Library/Frameworks/Security.framework/Headers/SecTransform.h:612:8:
error: unknown type name 'SecMessageBlock'
SecMessageBlock deliveryBlock)
^
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/local/src/sage/sage/local/bin/python -c "import
setuptools,
tokenize;__file__='/private/var/folders/v8/mh06bfhd4j18mgftw8818gxw0000gp/T
/pip-build-sVMlYI/cryptography/setup.py';exec(compile(getattr(tokenize,
'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /var/folders/v8/mh06bfhd4j18mgftw8818gxw0000gp/T/pip-
iZFMxa-record/install-record.txt --single-version-externally-managed
--compile" failed with error code 1 in
/private/var/folders/v8/mh06bfhd4j18mgftw8818gxw0000gp/T/pip-build-
sVMlYI/cryptography
}}}
perhaps with 2.7.9 pyopenssl is obsolete? e.g. google finds:
https://github.com/basho/riak-python-client/pull/397
{{{
Avoid dependency on pyOpenSSL when using Python 2.7.9
Many enhancements of the Python 3 ssl module have been backported to
Python 2.7.9.
In particular, the class SSLContext() is available and could be used
instead of relying
on the pyOpenSSL module.
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/18397#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.