tensorflow / tensorflow/cloud

Suggestion for easy patch to support custom wheel files

Open
#378 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
383
Forks
93
Avg merge
1d 3h
Merged PRs (30d)
1

Description

Suggestion for easy patch to support custom wheel files.
Please move in containerize.py the line

lines.append("COPY {} {}".format(self.destination_dir, self.destination_dir))

up before the "pip install" block.
This way pip will see a custom wheel file that is lies next to the entry point and can be installed using a line in the requirements.txt file.

See stackoverflow question:
https://stackoverflow.com/questions/70249688/how-to-use-tensorflow-cloud-with-my-own-python-wheel

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read containerize.py, focusing on the line that appends the COPY instruction and the pip install block. Move the COPY instruction before pip installation so a custom wheel beside the entry point is available to pip through requirements.txt; done means the generated container can install that wheel.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cloud, devops
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.