Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
88443d6d
Commit
88443d6d
authored
Dec 15, 2014
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7306 from abadger/feature/egg-info
Feature/egg info
parents
bd5b28e4
f7b76e03
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
5 deletions
+39
-5
bin/ansible-playbook
+2
-2
bin/ansible-vault
+2
-2
hacking/env-setup
+25
-1
hacking/env-setup.fish
+10
-0
No files found.
bin/ansible-playbook
View file @
88443d6d
...
...
@@ -18,8 +18,8 @@
#######################################################
#
__requires__ = ['ansible']
#
import pkg_resources
__requires__
=
[
'ansible'
]
import
pkg_resources
import
sys
import
os
...
...
bin/ansible-vault
View file @
88443d6d
...
...
@@ -18,8 +18,8 @@
# ansible-vault is a script that encrypts/decrypts YAML files. See
# http://docs.ansible.com/playbooks_vault.html for more details.
#
__requires__ = ['ansible']
#
import pkg_resources
__requires__
=
[
'ansible'
]
import
pkg_resources
import
os
import
sys
...
...
hacking/env-setup
View file @
88443d6d
...
...
@@ -23,6 +23,30 @@ PREFIX_MANPATH="$ANSIBLE_HOME/docs/man"
[[
$PATH
!=
${
PREFIX_PATH
}*
]]
&&
export
PATH
=
$PREFIX_PATH
:
$PATH
[[
$MANPATH
!=
${
PREFIX_MANPATH
}*
]]
&&
export
MANPATH
=
$PREFIX_MANPATH
:
$MANPATH
#
# Generate egg_info so that pkg_resources works
#
# Do the work in a function so we don't repeat ourselves later
gen_egg_info
()
{
python setup.py egg_info
if
[
-e
$PREFIX_PYTHONPATH
/ansible
*
.egg-info
]
;
then
rm
-r
$PREFIX_PYTHONPATH
/ansible
*
.egg-info
fi
mv ansible
*
.egg-info
$PREFIX_PYTHONPATH
}
# In some shells if pushd is a no-op then popd sends you to a previous
# directory in history
if
[
"
$ANSIBLE_HOME
"
!=
"
$PWD
"
]
;
then
pushd
"
$ANSIBLE_HOME
"
gen_egg_info
popd
else
gen_egg_info
fi
# Print out values unless -q is set
if
[
$#
-eq
0
-o
"
$1
"
!=
"-q"
]
;
then
...
...
@@ -33,7 +57,7 @@ if [ $# -eq 0 -o "$1" != "-q" ] ; then
echo
"PYTHONPATH=
$PYTHONPATH
"
echo
"MANPATH=
$MANPATH
"
echo
""
echo
"Remember, you may wish to specify your host file with -i"
echo
""
echo
"Done!"
...
...
hacking/env-setup.fish
View file @
88443d6d
...
...
@@ -36,6 +36,16 @@ end
set -gx ANSIBLE_LIBRARY $ANSIBLE_HOME/library
# Generate egg_info so that pkg_resources works
pushd $ANSIBLE_HOME
python setup.py egg_info
if test -e $PREFIX_PYTHONPATH/ansible*.egg-info
rm -r $PREFIX_PYTHONPATH/ansible*.egg-info
end
mv ansible*egg-info $PREFIX_PYTHONPATH
popd
if set -q argv
switch $argv
case '-q' '--quiet'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment