Skip to content

Add new Managing Python Pipeline Dependencies page#147

Closed
melap wants to merge 4 commits intoapache:asf-sitefrom
melap:python2
Closed

Add new Managing Python Pipeline Dependencies page#147
melap wants to merge 4 commits intoapache:asf-sitefrom
melap:python2

Conversation

@melap
Copy link

@melap melap commented Feb 4, 2017

R: @aaltay

@asfbot
Copy link

asfbot commented Feb 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Test/222/
--none--

@asfbot
Copy link

asfbot commented Feb 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/264/

Jenkins built the site at commit id 0b74641 with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

@asfbot
Copy link

asfbot commented Feb 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Test/223/
--none--

@asfbot
Copy link

asfbot commented Feb 4, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/265/

Jenkins built the site at commit id e051736 with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.


The runner will use the `requirements.txt` file to install your additional dependencies onto the remote workers.

**Important:** Remote workers will install all packages listed in the `requirements.txt` file. Because of this, it's very important that you delete non-PyPI packages from the `requirements.txt` file, as stated in step 2. If you don't remove non-PyPI packages, the remote workers attempt to install packages from sources that are unknown to them, and an error occurs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The final part of the sentence is confusing a little bit:
the remote workers attempt to install packages from sources that are unknown to them, and an error occurs
maybe ?
The remote workers will fail while attempting to install packages from sources unknown to them.


## <a name="multfiles"></a>Multiple File Dependencies

Often, your pipeline code spans multiple files. To run your project remotely, you must group these files as a Python package. When remote workers spin up, they look for this kind of package in the staging location and install it. To group your files as a Python package and make it available remotely, perform the following steps:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

start instead of spin up
they look for this kind of package in the staging location and install it. -> they will install the Python package specified using this method.


--setup_file /path/to/setup.py


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the empty line

**Note:** If you [created a requirements.txt file](#pypi) and your project spans multiple files, you can get rid of the `requirements.txt` file and instead, add all packages contained in `requirements.txt` to the `install_requires` field of the setup call (in step 1).


## <a name="nonpython"></a>Non-Python Dependencies
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this section and the next one (PyPI Dependencies with Non-Python Dependencies) can be merged.

We can remove this section and change the title of the next one to Non-Python Dependencies and PyPI Dependencies with Non-Python Dependencies. (Also maybe some adjustment to the first sentence to cover both cases.)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did some tweaking, let me know what you think.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you.

@asfbot
Copy link

asfbot commented Feb 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Test/231/
--none--

@asfbot
Copy link

asfbot commented Feb 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/273/

Jenkins built the site at commit id 0315d77 with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

@asfbot
Copy link

asfbot commented Feb 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Test/232/
--none--

@asfbot
Copy link

asfbot commented Feb 9, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Website_Stage/274/

Jenkins built the site at commit id 51202df with Jekyll and staged it here. Happy reviewing.

Note that any previous site has been deleted. This staged site will be automatically deleted after its TTL expires. Push any commit to the pull request branch or re-trigger the build to get it staged again.

@melap
Copy link
Author

melap commented Feb 10, 2017

side note: I addressed the (unrelated to this PR) broken links in PR 151

@aaltay
Copy link
Member

aaltay commented Feb 10, 2017

LGTM. Thank you.

@asfgit asfgit closed this in a1e2a39 Feb 10, 2017
@melap melap deleted the python2 branch February 13, 2017 20:13
robertwb pushed a commit to robertwb/incubator-beam that referenced this pull request Jun 5, 2018
melap pushed a commit to apache/beam that referenced this pull request Jun 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants