Page MenuHomeFreeBSD

Import lang/python37
AbandonedPublic

Authored by miwi on Jul 5 2018, 5:01 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 2:01 AM
Unknown Object (File)
Aug 27 2023, 10:11 PM
Unknown Object (File)
Aug 25 2023, 8:26 PM
Unknown Object (File)
Aug 23 2023, 8:33 PM
Unknown Object (File)
Jul 5 2023, 11:49 AM
Unknown Object (File)
May 31 2023, 5:54 PM
Unknown Object (File)
May 12 2023, 6:48 PM
Unknown Object (File)
Apr 25 2023, 9:39 AM
Subscribers

Details

Reviewers
None
Group Reviewers
O5: Ports Framework(Owns No Changed Paths)
portmgr
Python
Summary

Part 1: Import lang/python37

Python 3.7.0 is the newest major release of the Python language, and it contains \
many new features and optimizations.

Among the major new features in Python 3.7 are:

PEP 539, new C API for thread-local storage
PEP 545, Python documentation translations
New documentation translations: Japanese, French, and Korean.
PEP 552, Deterministic pyc files
PEP 553, Built-in breakpoint()
PEP 557, Data Classes
PEP 560, Core support for typing module and generic types
PEP 562, Customization of access to module attributes
PEP 563, Postponed evaluation of annotations
PEP 564, Time functions with nanosecond resolution
PEP 565, Improved DeprecationWarning handling
PEP 567, Context Variables
Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale
coercion and PEP 540, forced UTF-8 runtime mode)
The insertion-order preservation nature of dict objects is now an official part
of the Python language spec.
Notable performance improvements in many areas.

Test Plan
  • Known issue it does not build with FreeBSD10 atm during an ssl issue (will look later or some help is appricated.) Buildlogs:

http://pkg2.miwibox.org/build.html?mastername=10amd64-miwi-ports&build=2018-07-05_11h53m27s
http://pkg2.miwibox.org/build.html?mastername=10i386-miwi-ports&build=2018-07-05_11h53m27s

  • Inital work is done, now some more testing needed and adding the docs files.

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 17868
Build 17632: arc lint + arc unit

Event Timeline

antoine added inline comments.
Mk/Uses/python.mk
247

Preferred should be first, so 3.6 before 3.7.

Looks like our OpenSSL in 10.4 is to old, python37 requires OpenSSL 1.0.2 as a minimum version. So I guess we will have no support for 10.4 then.

--SNIP---(test.c)------------------------------

#include <openssl/x509_vfy.h>

int
main ()
{

       X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new();
       X509_VERIFY_PARAM_set1_host(p, "localhost", 0);
       X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1");
       X509_VERIFY_PARAM_set_hostflags(p, 0);

 ;
 return 0;
}

--SNIP---(test.c)-----------------------------

$ cc test.c -lssl -lcrypto -lutil -Wno-implicit-function-declaration
/tmp/bla-e6f818.o: In function `main':
bla.c:(.text+0x40): undefined reference to `X509_VERIFY_PARAM_set1_host'
bla.c:(.text+0x52): undefined reference to `X509_VERIFY_PARAM_set1_ip_asc'
bla.c:(.text+0x63): undefined reference to `X509_VERIFY_PARAM_set_hostflags'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Mk/Uses/python.mk
247

ups, thanks I will fix it with the next upload.

Close, r473992 by wen.