Skip to content

Commit 4d83988

Browse files
Minor tweaks
- Update pyobjc_setup.py to ensure building release artefacts works correctly - Force use of binary wheels when testing release artefacts
1 parent eca9dca commit 4d83988

File tree

141 files changed

+141
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+141
-140
lines changed

development-support/test-wheels

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def main():
4141
DIST_DIR,
4242
"--no-index",
4343
"--no-cache-dir",
44+
"--only-binary", ":all:",
4445
f"pyobjc=={pyobjc_ver()}",
4546
]
4647
).decode("utf-8")

pyobjc-core/Tools/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AVFoundation/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AVKit/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-Accessibility/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-Accounts/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AdServices/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AdSupport/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AddressBook/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AppTrackingTransparency/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AppleScriptKit/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AppleScriptObjC/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-ApplicationServices/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AudioVideoBridging/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AuthenticationServices/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-AutomaticAssessmentConfiguration/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-Automator/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-BusinessChat/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CFNetwork/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CalendarStore/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CallKit/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-ClassKit/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CloudKit/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-Cocoa/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-Collaboration/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-ColorSync/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-Contacts/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-ContactsUI/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreAudio/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreAudioKit/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreBluetooth/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreData/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreHaptics/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreLocation/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreMIDI/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreML/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreMedia/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreMediaIO/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreMotion/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreServices/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreSpotlight/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreText/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

pyobjc-framework-CoreWLAN/pyobjc_setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def run(self):
418418
# Ensure that the PyObjC header files are available
419419
# in 2.3 and later the headers are in the egg,
420420
# before that we ship a copy.
421-
if not os.path.isfile("Modules/pyobjc-api.h"):
421+
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
422422
(dist,) = pkg_resources.require("pyobjc-core")
423423

424424
include_root = os.path.join(self.build_temp, "pyobjc-include")

0 commit comments

Comments
 (0)