Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
GitLab API Experiments
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karl Fogel
GitLab API Experiments
Commits
ecafcf1c
Commit
ecafcf1c
authored
3 months ago
by
Karl Fogel
Browse files
Options
Downloads
Patches
Plain Diff
Explain another way to install python-gitlab
parent
0c1c513f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gl-sak
+9
-4
9 additions, 4 deletions
gl-sak
with
9 additions
and
4 deletions
gl-sak
+
9
−
4
View file @
ecafcf1c
...
...
@@ -44,7 +44,12 @@ except ImportError:
print
(
"""
ERROR: Python GitLab API bindings not found.
Please install
'
python-gitlab
'
and make it available in your Python
run-time environment. This recipe should work for most people:
run-time environment. One way is to install it system-wide, for
example like this on Debian GNU/Linux systems:
$ sudo apt-get install python3-gitlab
Another way is to install it into a local virtual environment:
$ git clone git@gitlab.com:python-gitlab/python-gitlab.git
$ cd python-gitlab
...
...
@@ -53,9 +58,9 @@ run-time environment. This recipe should work for most people:
venv$ pip install -e .
venv$ cd .../wherever/gl-sak/lives
venv$ ./gl-sak --help
(
See https://python-gitlab.readthedocs.io/en/stable/api-usage.html
for more about the Python GitLab API package.
)
"""
)
See https://python-gitlab.readthedocs.io/en/stable/api-usage.html
for more about the Python GitLab API package.
"""
)
sys
.
exit
(
1
)
# Read https://docs.python.org/dev/library/argparse.html#sub-commands
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment