Skip to content

Commit 8cf816b

Browse files
committed
BUG: Remove setuptools package shim workaround
We now use scikit-build-core.
1 parent 5eee398 commit 8cf816b

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

itk/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/pyproject_configure.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -299,18 +299,18 @@ def main():
299299
print("Unknown wheel name '%s'" % args.wheel_name)
300300
sys.exit(1)
301301

302-
# Configure 'setup.py'
302+
# Configure 'pyproject.toml'
303303
output_file = os.path.join(args.output_dir, 'pyproject.toml')
304304
configure(template, PYPROJECT_PY_PARAMETERS[args.wheel_name], output_file)
305305

306306
# Configure or remove 'itk/__init__.py'
307-
init_py = os.path.join(args.output_dir, "itk", "__init__.py")
308-
if args.wheel_name in ["itk", "itk-core"]:
309-
with open(init_py, 'w') as file_:
310-
file_.write("# Stub required for setuptools\n")
311-
else:
312-
if os.path.exists(init_py):
313-
os.remove(init_py)
307+
# init_py = os.path.join(args.output_dir, "itk", "__init__.py")
308+
# if args.wheel_name in ["itk", "itk-core"]:
309+
# with open(init_py, 'w') as file_:
310+
# file_.write("# Stub required for package\n")
311+
# else:
312+
# if os.path.exists(init_py):
313+
# os.remove(init_py)
314314

315315
if __name__ == "__main__":
316316
main()

0 commit comments

Comments
 (0)