Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
news
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sartika Aritonang
news
Commits
a73e40a4
Commit
a73e40a4
authored
May 29, 2020
by
Sartika Aritonang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
97cadfe5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
0 deletions
+46
-0
wheel.py
...Lib/site-packages/pip/_internal/operations/build/wheel.py
+46
-0
No files found.
stbi/Lib/site-packages/pip/_internal/operations/build/wheel.py
0 → 100644
View file @
a73e40a4
import
logging
import
os
from
pip._internal.utils.subprocess
import
runner_with_spinner_message
from
pip._internal.utils.typing
import
MYPY_CHECK_RUNNING
if
MYPY_CHECK_RUNNING
:
from
typing
import
List
,
Optional
from
pip._vendor.pep517.wrappers
import
Pep517HookCaller
logger
=
logging
.
getLogger
(
__name__
)
def
build_wheel_pep517
(
name
,
# type: str
backend
,
# type: Pep517HookCaller
metadata_directory
,
# type: str
build_options
,
# type: List[str]
tempd
,
# type: str
):
# type: (...) -> Optional[str]
"""Build one InstallRequirement using the PEP 517 build process.
Returns path to wheel if successfully built. Otherwise, returns None.
"""
assert
metadata_directory
is
not
None
if
build_options
:
# PEP 517 does not support --build-options
logger
.
error
(
'Cannot build wheel for
%
s using PEP 517 when '
'--build-option is present'
%
(
name
,))
return
None
try
:
logger
.
debug
(
'Destination directory:
%
s'
,
tempd
)
runner
=
runner_with_spinner_message
(
'Building wheel for {} (PEP 517)'
.
format
(
name
)
)
with
backend
.
subprocess_runner
(
runner
):
wheel_name
=
backend
.
build_wheel
(
tempd
,
metadata_directory
=
metadata_directory
,
)
except
Exception
:
logger
.
error
(
'Failed building wheel for
%
s'
,
name
)
return
None
return
os
.
path
.
join
(
tempd
,
wheel_name
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment