Skip to content

Commit e5aba33

Browse files
committed
BUG: Re-add package initialization files
1 parent 4e085ee commit e5aba33

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

itk/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Stub required for setuptools

setup.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Generated using: python setup_py_configure.py 'itk-meta'
2+
# Generated using: python setup_py_configure.py 'itk'
33

44
from __future__ import print_function
55
from os import sys, path
@@ -16,19 +16,14 @@
1616
sys.path.append(path.dirname(path.dirname(path.abspath(__file__))))
1717
from itkVersion import get_versions
1818

19-
long_description = 'itk\n'
20-
long_description += '====================================\n\n'
21-
long_description += 'ITK is an open-source, cross-platform library that provides developers with an extensive suite of software tools for image analysis. Developed through extreme programming methodologies, ITK employs leading-edge algorithms for registering and segmenting multidimensional scientific images.\n\n'
22-
2319
this_directory = path.abspath(path.dirname(__file__))
2420
itk_readme_path = path.join(this_directory, 'ITK-source', 'ITK', 'README.md')
2521
if path.exists(itk_readme_path):
2622
with open(itk_readme_path, encoding='utf-8') as f:
27-
long_description += f.read()
23+
long_description = f.read()
2824
else:
2925
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
30-
long_description += f.read()
31-
26+
long_description = f.read()
3227

3328
setup(
3429
name='itk',
@@ -37,8 +32,17 @@
3732
author_email='[email protected]',
3833
packages=['itk'],
3934
package_dir={'itk': 'itk'},
40-
cmake_args=['-DITKPythonPackage_WHEEL_NAME:STRING=itk-meta'],
41-
py_modules=[],
35+
cmake_args=[],
36+
py_modules=[
37+
'itkBase',
38+
'itkConfig',
39+
'itkExtras',
40+
'itkLazy',
41+
'itkTemplate',
42+
'itkTypes',
43+
'itkVersion',
44+
'itkBuildOptions'
45+
],
4246
download_url=r'https://itk.org/ITK/resources/software.html',
4347
description=r'ITK is an open-source toolkit for multidimensional image analysis',
4448
long_description=long_description,
@@ -66,12 +70,6 @@
6670
keywords='ITK InsightToolkit segmentation registration image imaging',
6771
url=r'https://itk.org/',
6872
install_requires=[
69-
'itk-core==5.2.0.post3',
70-
'itk-numerics==5.2.0.post3',
71-
'itk-io==5.2.0.post3',
72-
'itk-filtering==5.2.0.post3',
73-
'itk-registration==5.2.0.post3',
74-
'itk-segmentation==5.2.0.post3',
75-
'numpy'
73+
r'numpy',
7674
]
7775
)

0 commit comments

Comments
 (0)