Skip to content

Commit

Permalink
Fix JSON loading issue in setup.py
Browse files Browse the repository at this point in the history
Summary: Address github issue #560

Reviewed By: gbleaney

Differential Revision: D33511420

fbshipit-source-id: 80cdd2b1bc63ffa39cd86dee5c62e093692191d5
  • Loading branch information
grievejia authored and facebook-github-bot committed Jan 10, 2022
1 parent 30c2fa4 commit e696405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/pypi/build_pypi_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def build_pypi_package(
dependencies = [
line.strip()
for line in (pyre_directory / "requirements.txt").read_text().split("\n")
if len(line) > 0
]
with tempfile.TemporaryDirectory() as build_root:
build_path = Path(build_root)
Expand Down
2 changes: 1 addition & 1 deletion scripts/pypi/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def main() -> None:
package_name="{PACKAGE_NAME}",
package_version="{PACKAGE_VERSION}",
module_name="{MODULE_NAME}",
runtime_dependencies=json.loads("""{RUNTIME_DEPENDENCIES}"""),
runtime_dependencies=json.loads(r"""{RUNTIME_DEPENDENCIES}"""),
long_description=long_description,
)

Expand Down

0 comments on commit e696405

Please sign in to comment.