FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
numpy/numpy/_configtool.py at main · numpy/numpy · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
numpy
/
numpy
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
12.7k
Star
32.6k
Code
Issues
2.1k
Pull requests
287
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
numpy
/
numpy
/
_configtool.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
39 lines (34 loc) · 1007 Bytes
Breadcrumbs
numpy
/
numpy
/
_configtool.py
Copy path
File metadata and controls
39 lines (34 loc) · 1007 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import
argparse
import
sys
from
pathlib
import
Path
from
.
lib
.
_utils_impl
import
get_include
from
.
version
import
__version__
def
main
()
->
None
:
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"--version"
,
action
=
"version"
,
version
=
__version__
,
help
=
"Print the version and exit."
,
)
parser
.
add_argument
(
"--cflags"
,
action
=
"store_true"
,
help
=
"Compile flag needed when using the NumPy headers."
,
)
parser
.
add_argument
(
"--pkgconfigdir"
,
action
=
"store_true"
,
help
=
(
"Print the pkgconfig directory in which `numpy.pc` is stored "
"(useful for setting $PKG_CONFIG_PATH)."
),
)
args
=
parser
.
parse_args
()
if
not
sys
.
argv
[
1
:]:
parser
.
print_help
()
if
args
.
cflags
:
print
(
"-I"
+
get_include
())
if
args
.
pkgconfigdir
:
_path
=
Path
(
get_include
())
/
'..'
/
'lib'
/
'pkgconfig'
print
(
_path
.
resolve
())
if
__name__
==
"__main__"
:
main
()
Back
|
FazBrowse Home
|
New Git URL