41 lines
1.1 KiB
Python
Executable File
41 lines
1.1 KiB
Python
Executable File
"""
|
|
Setup-Skript für dicom2pacs Mac App
|
|
|
|
Usage:
|
|
python setup.py py2app
|
|
"""
|
|
|
|
from setuptools import setup
|
|
import os
|
|
|
|
APP = ['dicom2pacs.py']
|
|
DATA_FILES = []
|
|
|
|
# Füge Icon hinzu, falls vorhanden
|
|
if os.path.exists('images/Logo.icns'):
|
|
DATA_FILES.append(('images', ['images/Logo.icns']))
|
|
|
|
OPTIONS = {
|
|
'iconfile': 'images/Logo.icns' if os.path.exists('images/Logo.icns') else None,
|
|
'packages': ['pydicom', 'aiohttp', 'aiofiles', 'tkinter'],
|
|
'includes': ['pydicom', 'aiohttp', 'aiofiles', 'asyncio', 'threading'],
|
|
'excludes': ['matplotlib', 'numpy', 'scipy', 'PIL', 'PyQt5', 'PyQt6', 'pytest', 'unittest'],
|
|
'plist': {
|
|
'CFBundleName': 'dicom2pacs',
|
|
'CFBundleDisplayName': 'DICOM zu PACS',
|
|
'CFBundleGetInfoString': 'DICOM Dateien zu Orthanc PACS hochladen',
|
|
'CFBundleIdentifier': 'com.dicom2pacs.app',
|
|
'CFBundleVersion': '1.0.0',
|
|
'CFBundleShortVersionString': '1.0.0',
|
|
'NSHighResolutionCapable': True,
|
|
},
|
|
}
|
|
|
|
setup(
|
|
name='dicom2pacs',
|
|
app=APP,
|
|
data_files=DATA_FILES,
|
|
options={'py2app': OPTIONS},
|
|
setup_requires=['py2app'],
|
|
)
|