Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
pip._internal.utils.setuptools_build Namespace Reference

Functions

List[str] make_setuptools_shim_args (str setup_py_path, Optional[Sequence[str]] global_options=None, bool no_user_config=False, bool unbuffered_output=False)
 
List[str] make_setuptools_bdist_wheel_args (str setup_py_path, Sequence[str] global_options, Sequence[str] build_options, str destination_dir)
 
List[str] make_setuptools_clean_args (str setup_py_path, Sequence[str] global_options)
 
List[str] make_setuptools_develop_args (str setup_py_path, *Sequence[str] global_options, bool no_user_config, Optional[str] prefix, Optional[str] home, bool use_user_site)
 
List[str] make_setuptools_egg_info_args (str setup_py_path, Optional[str] egg_info_dir, bool no_user_config)
 

Variables

 _SETUPTOOLS_SHIM
 

Function Documentation

◆ make_setuptools_bdist_wheel_args()

List[str] make_setuptools_bdist_wheel_args ( str  setup_py_path,
Sequence[str]  global_options,
Sequence[str]  build_options,
str  destination_dir 
)

Definition at line 75 of file setuptools_build.py.

80) -> List[str]:
81 # NOTE: Eventually, we'd want to also -S to the flags here, when we're
82 # isolating. Currently, it breaks Python in virtualenvs, because it
83 # relies on site.py to find parts of the standard library outside the
84 # virtualenv.
85 args = make_setuptools_shim_args(
86 setup_py_path, global_options=global_options, unbuffered_output=True
87 )
88 args += ["bdist_wheel", "-d", destination_dir]
89 args += build_options
90 return args
91
92

References pip._internal.utils.setuptools_build.make_setuptools_shim_args().

Here is the call graph for this function:

◆ make_setuptools_clean_args()

List[str] make_setuptools_clean_args ( str  setup_py_path,
Sequence[str]  global_options 
)

Definition at line 93 of file setuptools_build.py.

96) -> List[str]:
97 args = make_setuptools_shim_args(
98 setup_py_path, global_options=global_options, unbuffered_output=True
99 )
100 args += ["clean", "--all"]
101 return args
102
103

References pip._internal.utils.setuptools_build.make_setuptools_shim_args().

Here is the call graph for this function:

◆ make_setuptools_develop_args()

List[str] make_setuptools_develop_args ( str  setup_py_path,
*Sequence[str]  global_options,
bool  no_user_config,
Optional[str]  prefix,
Optional[str]  home,
bool  use_user_site 
)

Definition at line 104 of file setuptools_build.py.

112) -> List[str]:
113 assert not (use_user_site and prefix)
114
115 args = make_setuptools_shim_args(
116 setup_py_path,
117 global_options=global_options,
118 no_user_config=no_user_config,
119 )
120
121 args += ["develop", "--no-deps"]
122
123 if prefix:
124 args += ["--prefix", prefix]
125 if home is not None:
126 args += ["--install-dir", home]
127
128 if use_user_site:
129 args += ["--user", "--prefix="]
130
131 return args
132
133

References pip._internal.utils.setuptools_build.make_setuptools_shim_args().

Here is the call graph for this function:

◆ make_setuptools_egg_info_args()

List[str] make_setuptools_egg_info_args ( str  setup_py_path,
Optional[str]  egg_info_dir,
bool  no_user_config 
)

Definition at line 134 of file setuptools_build.py.

138) -> List[str]:
139 args = make_setuptools_shim_args(setup_py_path, no_user_config=no_user_config)
140
141 args += ["egg_info"]
142
143 if egg_info_dir:
144 args += ["--egg-base", egg_info_dir]
145
146 return args

References pip._internal.utils.setuptools_build.make_setuptools_shim_args().

Here is the call graph for this function:

◆ make_setuptools_shim_args()

List[str] make_setuptools_shim_args ( str  setup_py_path,
Optional[Sequence[str]]   global_options = None,
bool   no_user_config = False,
bool   unbuffered_output = False 
)
Get setuptools command arguments with shim wrapped setup file invocation.

:param setup_py_path: The path to setup.py to be wrapped.
:param global_options: Additional global options.
:param no_user_config: If True, disables personal user configuration.
:param unbuffered_output: If True, adds the unbuffered switch to the
 argument list.

Definition at line 49 of file setuptools_build.py.

54) -> List[str]:
55 """
56 Get setuptools command arguments with shim wrapped setup file invocation.
57
58 :param setup_py_path: The path to setup.py to be wrapped.
59 :param global_options: Additional global options.
60 :param no_user_config: If True, disables personal user configuration.
61 :param unbuffered_output: If True, adds the unbuffered switch to the
62 argument list.
63 """
64 args = [sys.executable]
65 if unbuffered_output:
66 args += ["-u"]
67 args += ["-c", _SETUPTOOLS_SHIM.format(setup_py_path)]
68 if global_options:
69 args += global_options
70 if no_user_config:
71 args += ["--no-user-cfg"]
72 return args
73
74
for i

References i.

Referenced by pip._internal.utils.setuptools_build.make_setuptools_bdist_wheel_args(), pip._internal.utils.setuptools_build.make_setuptools_clean_args(), pip._internal.utils.setuptools_build.make_setuptools_develop_args(), and pip._internal.utils.setuptools_build.make_setuptools_egg_info_args().

Here is the caller graph for this function:

Variable Documentation

◆ _SETUPTOOLS_SHIM

_SETUPTOOLS_SHIM
protected
Initial value:
2
3).rstrip()

Definition at line 8 of file setuptools_build.py.