Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
- Update pyobjc_setup.py to ensure building release artefacts
  works correctly
- Force use of binary wheels when testing release artefacts
  • Loading branch information
ronaldoussoren committed Sep 16, 2022
1 parent eca9dca commit 4d83988
Show file tree
Hide file tree
Showing 141 changed files with 141 additions and 140 deletions.
1 change: 1 addition & 0 deletions development-support/test-wheels
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def main():
DIST_DIR,
"--no-index",
"--no-cache-dir",
"--only-binary", ":all:",
f"pyobjc=={pyobjc_ver()}",
]
).decode("utf-8")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-core/Tools/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AVFoundation/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AVKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-Accessibility/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-Accounts/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AdServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AdSupport/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AddressBook/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AppTrackingTransparency/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AppleScriptKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AppleScriptObjC/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-ApplicationServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AudioVideoBridging/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-AuthenticationServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-Automator/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-BusinessChat/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CFNetwork/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CalendarStore/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CallKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-ClassKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CloudKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-Cocoa/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-Collaboration/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-ColorSync/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-Contacts/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-ContactsUI/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreAudio/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreAudioKit/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreBluetooth/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreData/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreHaptics/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreLocation/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreMIDI/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreML/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreMedia/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreMediaIO/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreMotion/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreServices/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreSpotlight/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreText/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
2 changes: 1 addition & 1 deletion pyobjc-framework-CoreWLAN/pyobjc_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def run(self):
# Ensure that the PyObjC header files are available
# in 2.3 and later the headers are in the egg,
# before that we ship a copy.
if not os.path.isfile("Modules/pyobjc-api.h"):
if os.path.isdir("Modules") and not os.path.isfile("Modules/pyobjc-api.h"):
(dist,) = pkg_resources.require("pyobjc-core")

include_root = os.path.join(self.build_temp, "pyobjc-include")
Expand Down
Loading

0 comments on commit 4d83988

Please sign in to comment.