from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = dict(packages = ["idna","lib","gui","plugins"], excludes = ["Tcl","tcl"]
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('electrum-xvg', base=base, targetName = 'Electrum XVG',icon="electrum.icns")]
setup(name='electrum-xvg',
version = '1.0',
description = '',
options = dict(build_exe = buildOptions),
executables = executables])
J'ai le fichier setup.py ci-dessus que j'utilise pour essayer de construire une application sur OSX Sierra. Mais quand je l'utilise python setup.py bdist_mac
soulève erreurcx_Freeze '@ rpath/libQtDeclarative.4.dylib': n'existe pas ou pas un fichier normal
@rpath/libQtDeclarative.4.dylib
error: can't copy '@rpath/libQtDeclarative.4.dylib': doesn't exist or not a regular file
libQtDeclarative.4.dylib
est présent dans ~/anaconda/envs/pyqtapp/lib
sur mon système, mais quand je otool -D libQtDeclarative.4.dylib
il a soulevé erreur que ce fichier existe, donc j'utilisé
install_name_tool -id "@rpath/libQtDeclarative.4.dylib" libQtDeclarative.4.dylib
à ~/anaconda/envs/pyqtapp/lib
maintenant quand je lance otool -D libQtDeclarative.4.dylib
je reçois
libQtDeclarative.4.dylib:
@rpath/libQtDeclarative.4.dylib
mais cx_Freeze s jusqu'à ce que soulève l'erreur
error: can't copy '@rpath/libQtDeclarative.4.dylib': doesn't exist or not a regular file
où est votre déclaration comprend? – mikep