Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ docs/_build/

# PyBuilder
target/

# Ninja IDE
*.nja
11 changes: 8 additions & 3 deletions pulp-dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import os
import sys

from pulp.devel import environment


WARNING_COLOR = '\033[31m'
WARNING_RESET = '\033[0m'

Expand All @@ -19,6 +22,8 @@
# Standard directories
DIR_PLUGINS = '/usr/lib/pulp/plugins'

ROOT_DIR = os.path.abspath(os.path.dirname(__file__))

LINKS = (
('plugins/etc/httpd/conf.d/pulp_python.conf', '/etc/httpd/conf.d/pulp_python.conf'),
('plugins/etc/pulp/server/plugins.conf.d/python_distributor.json',
Expand Down Expand Up @@ -92,7 +97,8 @@ def getlinks():

def install(opts):
# Install the packages in developer mode
os.system('./manage_setup_pys.sh develop')
environment.manage_setup_pys('install', ROOT_DIR)

warnings = []
create_dirs(opts)
# Ensure the directory is owned by apache
Expand Down Expand Up @@ -120,7 +126,7 @@ def uninstall(opts):
os.unlink(dst)

# Uninstall the packages
os.system('./manage_setup_pys.sh develop --uninstall')
environment.manage_setup_pys('uninstall', ROOT_DIR)
return os.EX_OK


Expand Down Expand Up @@ -161,7 +167,6 @@ def _create_link(opts, src, dst):
% (dst, src, e)
return msg

# -----------------------------------------------------------------------------

if __name__ == '__main__':
# TODO add something to check for permissions
Expand Down