Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
foo
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-womeldorf committed Aug 17, 2020
1 parent e852e3c commit c7911c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/requirements.build_defs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ def requirements_txt(name:str, src:str='requirements.txt', zip_safe:bool=True, t
tag = 'read',
srcs = [src],
cmd = 'cat $SRCS',
post_build = lambda _, output: [add_dep(name, auto_pip_library(
# post_build = lambda _, output: [add_dep(name, auto_pip_library(
# name = line.partition('=')[0].rstrip('>=<] ').replace('[', '_'),
# package = line.partition('#')[0].rstrip(' '), # remove comments and strip spaces
# )) for line in output if not line.startswith('#') and len(line.strip()) > 0],
post_build = lambda _, output: [add_dep(name, pip_library(
name = line.partition('=')[0].rstrip('>=<] ').replace('[', '_'),
version = line.partition('=')[2].lstrip('>=<] '),
package = line.partition('#')[0].rstrip(' '), # remove comments and strip spaces
)) for line in output if not line.startswith('#') and len(line.strip()) > 0],
deps = deps,
Expand Down

0 comments on commit c7911c6

Please sign in to comment.