Skip to content

Commit ae453fc

Browse files
committed
chore: Make sure to mark builds as platform specific
Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
1 parent e9ef3ca commit ae453fc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

setup.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# type: ignore
2+
13
import glob
24
import os
35
import platform
@@ -283,7 +285,7 @@ def initialize_options(self):
283285

284286
def finalize_options(self):
285287
develop.finalize_options(self)
286-
if NO_TS:
288+
if NO_TS or PY_ONLY:
287289
self.root_is_pure = False
288290

289291
def run(self):
@@ -307,7 +309,7 @@ def initialize_options(self):
307309

308310
def finalize_options(self):
309311
install.finalize_options(self)
310-
if NO_TS:
312+
if NO_TS or PY_ONLY:
311313
self.root_is_pure = False
312314

313315
def run(self):
@@ -331,7 +333,7 @@ def initialize_options(self):
331333

332334
def finalize_options(self):
333335
bdist_wheel.finalize_options(self)
334-
if NO_TS:
336+
if NO_TS or PY_ONLY:
335337
self.root_is_pure = False
336338

337339
def run(self):
@@ -354,7 +356,7 @@ def initialize_options(self):
354356

355357
def finalize_options(self):
356358
editable_wheel.finalize_options(self)
357-
if NO_TS:
359+
if NO_TS or PY_ONLY:
358360
self.root_is_pure = False
359361

360362
def run(self):

0 commit comments

Comments
 (0)