[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-12-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: The work in #441100 is merged into master and 3.9, including an (experimental) "universal2" build of the latter in 3.9.1rc1 that is build with the latest SDK. I'm therefore closing this issue. -- dependencies: -Support macOS 11 and Apple Silicon

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-10-25 Thread Dima Tisnek
Dima Tisnek added the comment: Indeed, this issue can be closed, when the mac build update is confirmed to be included in a specific upcoming Python version. -- ___ Python tracker

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-10-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: The active PR on bpo-41100 will make it possible to build the installer on the latest version of macOS (which will be needed to be able to provide support for "Apple Silicon"). IMHO it is not necessary to remove unavailable constants, on some platforms (in

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-05-15 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-07 Thread Ma Lin
Ma Lin added the comment: It seems that people usually use the socket module like this, I think it's safe to respect this habit: if hasattr(socket, "FLAG_NAME"): do_something If use PR19402, your program will have problem on the older version system, not only "don't break

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-07 Thread Dima Tisnek
Dima Tisnek added the comment: Wow, very curious. Yes, it's very much like `socket.TCP_KEEPCNT` in that respect, though, admittedly I don't have a very old Mac to test this right now. I think there were VMs for that maybe? 樂 I wonder, what failure would be best for a naive code below, a

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-07 Thread Ma Lin
Ma Lin added the comment: Windows build encountered a similar problem, see issue32394. The solution is to check the runtime system version when importing socket module, if it is an older system, delete the constants. [1] issue32394 has a small script (winsdk_watchdog.py) to help find such

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-07 Thread Dima Tisnek
Dima Tisnek added the comment: The constant value is the same for macOS and iOS: iphone, watch, tv: ~ > locate netinet/tcp.h | xargs grep LOWAT /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/usr/include/netinet/tcp.h:#define

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: I don't like that workaround. I'm also not sure if the value of these constants is the same on macOS and iOS (I do know that some constants higher up in the stack are not the same). This issue is a duplicate of an earlier bug about missing functions that I

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-06 Thread Dima Tisnek
Change by Dima Tisnek : -- keywords: +patch pull_requests: +18764 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19402 ___ Python tracker ___

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-06 Thread Dima Tisnek
Dima Tisnek added the comment: Thank you for the explanation, Ronald. `socket.TCP_NOTSENT_LOWAT` is just a constant though, to be passed to `setsockopt`. What do you think of `ifndef ... define ...` work-around, akin to a few other constants in socket module?

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-06 Thread Ronald Oussoren
Ronald Oussoren added the comment: AFAIK the macOS builds are still build on the oldest macOS release supported by the installer (that is, a macOS 10.9 system). This means the build won't use macOS APIs introduced in macOS 10.10 or later. It would be nice to build the installer using

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-04-06 Thread Dima Tisnek
Dima Tisnek added the comment: +macos team, because I can't for the life of me figure out how official builds are made ☹️ In short: my local build has socket.TCP_NOTSENT_LOWAT but the official build does not. -- nosy: +ned.deily, ronaldoussoren

[issue40060] socket.TCP_NOTSENT_LOWAT is missing in official macOS builds

2020-03-25 Thread Dima Tisnek
New submission from Dima Tisnek : Somehow, it turns out that `TCP_NOTSENT_LOWAT` that's available since 3.7.x is not available in the official macOS builds : > python3.7 Python 3.7.4 (v3.7.4:e09359112e, Jul 8 2019, 14:54:52) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright",