Because folks on RHEL 6 (not CentOS 6) have some issues with asciidoc, do not build the asciidoc from
the rpm or make install targets. Also modify the make install (only) to copy over files into the library directory since the setup.py does not do this (due to a distutils bug, more or less).
This commit is contained in:
parent
1a0672fd1e
commit
9049b0e7ca
3 changed files with 9 additions and 6 deletions
10
Makefile
10
Makefile
|
@ -14,9 +14,7 @@ all: clean python
|
|||
tests:
|
||||
PYTHONPATH=./lib nosetests
|
||||
|
||||
docs: manuals
|
||||
|
||||
manuals: $(MANPAGES)
|
||||
docs: $(MANPAGES)
|
||||
|
||||
%.1: %.1.asciidoc
|
||||
$(ASCII2MAN)
|
||||
|
@ -52,10 +50,12 @@ clean:
|
|||
@echo "Cleaning up RPM building stuff"
|
||||
-rm -rf MANIFEST rpm-build
|
||||
|
||||
python: docs
|
||||
python:
|
||||
python setup.py build
|
||||
|
||||
install: docs
|
||||
install:
|
||||
mkdir -p /usr/share/ansible
|
||||
cp ./library/* /usr/share/ansible/
|
||||
python setup.py install
|
||||
|
||||
sdist: clean
|
||||
|
|
1
docs/man/.gitignore
vendored
1
docs/man/.gitignore
vendored
|
@ -1,2 +1 @@
|
|||
*.xml
|
||||
*.[0-9]
|
||||
|
|
4
setup.py
4
setup.py
|
@ -1,5 +1,9 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
# NOTE: setup.py does NOT install the contents of the library dir
|
||||
# for you, you should go through "make install" or "make RPMs"
|
||||
# for that, or manually copy modules over.
|
||||
|
||||
import glob
|
||||
import os
|
||||
import sys
|
||||
|
|
Loading…
Reference in a new issue