Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
システム パッケージ マネージャー (C ライブラリへのバインディングなど) を介してのみインストールする必要があるパッケージに依存するプロジェクトがあるとしますinstall_requires。
install_requires
現在、上記のパッケージをインポートして、インポートが失敗した場合は正の終了コードsetup.pyで呼び出しようとしています。sys.exit()これは良い習慣ですか、それともこれを達成するためのより良い方法はありますか?
setup.py
sys.exit()