This repository was archived by the owner on Apr 23, 2021. It is now read-only.
forked from vikoadi/indicator-kdeconnect
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bajoja
committed
Apr 20, 2017
1 parent
619aa0a
commit e80e053
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2017 KDE Connect Indicator Developers | ||
# | ||
# This software is licensed under the GNU Lesser General Public License | ||
# (version 2.1 or later). See the COPYING file in this distribution. | ||
# | ||
|
||
function(find_python_module module) | ||
execute_process( | ||
COMMAND | ||
python3 -c "from requests_oauthlib import OAuth2Session" | ||
RESULT_VARIABLE PYTHON_module | ||
ERROR_QUIET | ||
OUTPUT_STRIP_TRAILING_WHITESPACE | ||
) | ||
|
||
if(NOT PYTHON_module) | ||
message ("-- Found requests_oauthlib") | ||
else(PYTHON_module) | ||
message (FATAL_ERROR "-- Not Found requests_oauthlib: install it first") | ||
endif() | ||
|
||
endfunction(find_python_module) | ||
|