"applicationtest.py"というスクリプトをスタンドアロンのosxアプリケーションに変換しようとしています。私はpy2appでそうしようとしました:https://pythonhosted.org/py2app/tutorial.html、そしてcxfreeze:http://cx-freeze.readthedocs.io/en/latest/script.html#scriptです。どちらのモジュールも、新しいアプリケーション+必要なサポートパッケージ/ scripts/libを持つフォルダを作成します。py2appとcxfreezeをPython 3をデフォルトバージョンとして使用する方法
しかし、これらのフォルダを見ると、ライブラリにpython 2.7が設定されていますが、アプリケーションに変換したいスクリプトは3.6で書かれています。
例:
:dist username$ tree
が与える:
.
└── applicationtest.app
└── Contents
├── Info.plist
├── MacOS
│ ├── applicationtest
│ └── python -> /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/bin/python
├── PkgInfo
└── Resources
├── PythonApplet.icns -> /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/Resources/PythonApplet.icns
├── __boot__.py
├── __error__.sh
├── lib
│ └── python2.7
│ ├── config -> /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/config
│ └── site.pyc -> ../../site.pyc
├── site.py
└── site.pyc
7 directories, 10 files
Q:どのようにアプリケーションを作成するときに使用するのpython 3を設定するには?
ありがとうございます!