Skip to content

Commit 16b3b7d

Browse files
committed
Remove entrypoint
1 parent ac3abf6 commit 16b3b7d

File tree

3 files changed

+0
-28
lines changed

3 files changed

+0
-28
lines changed

python/pip.bzl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ def data_requirement(name):
106106
def dist_info_requirement(name):
107107
return "{macro_tmpl}".format(pip_utils.normalize_name(name), "dist_info")
108108
109-
def entry_point(pkg, script = None):
110-
fail("Not implemented yet")
111-
112109
def install_deps(**whl_library_kwargs):
113110
{install_deps_calls}
114111
for wheel_name in _wheel_names:

python/pip_install/pip_repository_requirements.bzl.tmpl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,6 @@ def data_requirement(name):
2929
def dist_info_requirement(name):
3030
return "%%MACRO_TMPL%%".format(pip_utils.normalize_name(name), "dist_info")
3131

32-
def entry_point(pkg, script = None):
33-
if not script:
34-
script = pkg
35-
return "@%%NAME%%_" + pip_utils.normalize_name(pkg) + "//:rules_python_wheel_entry_point_" + script
36-
3732
def _get_annotation(requirement):
3833
# This expects to parse `setuptools==58.2.0 --hash=sha256:2551203ae6955b9876741a26ab3e767bb3242dafe86a32a749ea0d78b6792f11`
3934
# down to `setuptools`.

python/private/bzlmod/requirements.bzl.tmpl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,3 @@ def data_requirement(name):
2424

2525
def dist_info_requirement(name):
2626
return "%%MACRO_TMPL%%".format(pip_utils.normalize_name(name), "dist_info")
27-
28-
def entry_point(pkg, script = None):
29-
"""entry_point returns the target of the canonical label of the package entrypoints.
30-
"""
31-
actual_script = script or pkg
32-
33-
fail("""Please replace this instance of entry_point with the following:
34-
35-
```
36-
load("@rules_python//python/entry_points:py_console_script_binary.bzl", "py_console_script_binary")
37-
38-
py_console_script_binary(
39-
name = "{pkg}",
40-
pkg = "@%%NAME%%//{pkg}",{script}
41-
)
42-
```
43-
""".format(
44-
pkg = pip_utils.normalize_name(pkg),
45-
script = "" if not script else "\n script = \"%s\"," % actual_script,
46-
))

0 commit comments

Comments
 (0)