We found py-pymssql does not build with FLAVOR=py37 due to:
/usr/local/lib/python3.7/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /wrkdirs/usr/ports/databases/py-pymssql/work-py37/pymssql-2.1.3/_mssql.pxd
I don't know if this is the right way to fix this but it does allow builds for py27, py36 and py37.
Created attachment 203360 [details]
Thanks for the patch. It looks like upstream added support in 2.1.4 . I'll get a build of that going, but don't have a MS-SQL server to test against at this time.
Makefile and distinfo diff attached. I removed the files/ and patches as they all seem to be handled upstream now. This built for me on 11.2 and 12.0, but I'm still using Python 3.6, so didn't verify the py37 build. Upstream reports it as working for Python 3.7.
Created attachment 203381 [details]
diff for Makefile and distinfo
The 2.1.4 patch builds for me ok (once I removed the the two patches for 2.1.3). I've asked my guy to test the new version and will report back.
We've verified the new version works. If you'll approve your patch, I will commit it.
A commit references this bug:
Date: Thu Apr 4 19:37:23 UTC 2019
New revision: 497863
databases/py-pymssql: Update to 2.1.4 and unbreak Python 3 build.
Submitted by: Henrik Hudson
Approved by: Henrik Hudson (maintainer), ler (mentor, implicit)
Thanks for your help in resolving this problem!