Story #3071
closed
As a Pulp user, I have instructions on how to install Pulp 3 from source
Status:
CLOSED - CURRENTRELEASE
Description
The docs already contain a 'Source Installation' heading[0], but the instructions are missing. The source installation instructions should include two types of source installations.
One option is cloning and running setup.py's
Explain that the Pulp repo needs to be cloned
create and activate a virtualenv
Installing pulpcore via `setup.py develop`
Installing pulpcore-plugin via `setup.py develop`
The other option should cover just installing both pulpcore and pulpcore-plugin straight from github (see comment 2).
Once installed it can refer the user to the other existing documentation which covers:
making migrations
migrating the database
starting the webserver
starting workers
[0] http://docs.pulpproject.org/en/3.0/nightly/installation/instructions.html#source-installation
Strangely I cannot figure out how to install from source from github. I was trying:
python3 -m venv env
source env/bin/activate
pip install -e git+https://github.com/pulp/pulp.git@3.0-dev#egg=pulpcore&subdirectory=platform
I get this error when I run that:
(env) [bmbouter@localhost Downloads]$ pip install -e git+https://github.com/pulp/pulp.git@3.0-dev#egg=pulpcore&subdirectory=platform
[3] 31660
(env) [bmbouter@localhost Downloads]$ Obtaining pulpcore from git+https://github.com/pulp/pulp.git@3.0-dev#egg=pulpcore
Cloning https://github.com/pulp/pulp.git (to 3.0-dev) to ./env/src/pulpcore
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python3.6/tokenize.py", line 452, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/home/bmbouter/Downloads/env/src/pulpcore/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/bmbouter/Downloads/env/src/pulpcore/
I was following these directions
With some help from @asmacdo I was able to get this working:
python3 -m venv env
source env/bin/activate
pip3 install -e "git+https://github.com/pulp/pulp.git@3.0-dev#egg=pulpcore&subdirectory=platform"
I was also able to install pulpcore-plugin as well with this:
pip3 install -e "git+https://github.com/pulp/pulp.git@3.0-dev#egg=pulpcore-plugin&subdirectory=plugin"
- Tracker changed from Issue to Story
- Description updated (diff)
- % Done set to 0
- Sprint Candidate changed from No to Yes
- Tags Documentation added
- Groomed changed from No to Yes
- Sprint/Milestone set to 46
- Status changed from NEW to POST
- Assignee set to bizhang
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
- Sprint/Milestone deleted (
46)
- Sprint/Milestone set to 3.0.0
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
Add Pulp3 source install instructions
Update all install instructions to use venv (instead of virtualenv) for consistency
closes #3071 https://pulp.plan.io/issues/3071