mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
0351c6c772
Summary: The Python 3 zipapp module always exits with return code 0 if the main function returns. Therefore we need to add our own wrapper function that handles calling `sys.exit()` if we want to exit with a non-zero status. Reviewed By: wez Differential Revision: D17678021 fbshipit-source-id: 5944c75d8e765ab3e3fa038fa6f2eee95ab0e780
18 lines
460 B
CMake
18 lines
460 B
CMake
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This software may be used and distributed according to the terms of the
|
|
# GNU General Public License version 2.
|
|
|
|
file(GLOB EDENFSCTL_SRCS "*.py" "doctor/*.py")
|
|
add_fb_python_executable(
|
|
edenfsctl
|
|
MAIN_MODULE eden.cli.main:zipapp_main
|
|
SOURCES ${EDENFSCTL_SRCS}
|
|
DEPENDS
|
|
eden_py
|
|
eden_overlay_thrift_py
|
|
eden_service_thrift_py
|
|
FBThrift::thrift_py_inspect
|
|
python-toml::python-toml
|
|
)
|