Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stop installing shell-tests. Currently tests are installed to /usr/sh…

…ell-tests which are not needed on production systems.

CURRENT INSTALLED FILES

$ python26 setup.py bdist_rpm --fix-python
$ rpm -qp --filesbypkg dist/crepo-0.1.8-1.noarch.rpm
crepo                     /usr/bin/crepo
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/PKG-INFO
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/SOURCES.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/dependency_links.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/entry_points.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/requires.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/top_level.txt
crepo                     /usr/lib/python2.6/site-packages/crepo.py
crepo                     /usr/lib/python2.6/site-packages/crepo.pyc
crepo                     /usr/lib/python2.6/site-packages/crepo.pyo
crepo                     /usr/lib/python2.6/site-packages/git_command.py
crepo                     /usr/lib/python2.6/site-packages/git_command.pyc
crepo                     /usr/lib/python2.6/site-packages/git_command.pyo
crepo                     /usr/lib/python2.6/site-packages/git_repo.py
crepo                     /usr/lib/python2.6/site-packages/git_repo.pyc
crepo                     /usr/lib/python2.6/site-packages/git_repo.pyo
crepo                     /usr/lib/python2.6/site-packages/manifest.py
crepo                     /usr/lib/python2.6/site-packages/manifest.pyc
crepo                     /usr/lib/python2.6/site-packages/manifest.pyo
crepo                     /usr/lib/python2.6/site-packages/test.py
crepo                     /usr/lib/python2.6/site-packages/test.pyc
crepo                     /usr/lib/python2.6/site-packages/test.pyo
crepo                     /usr/lib/python2.6/site-packages/trace.py
crepo                     /usr/lib/python2.6/site-packages/trace.pyc
crepo                     /usr/lib/python2.6/site-packages/trace.pyo
crepo                     /usr/shell-tests/basic_test.sh
crepo                     /usr/shell-tests/follow_tag.sh
crepo                     /usr/shell-tests/smoke_test.sh

FILES INSTALLED WITH THIS CHANGE

With this change, the tests are no longer installed at distribution time.
$ rpm -qp --filesbypkg dist/crepo-0.1.8-1.noarch.rpm
crepo                     /usr/bin/crepo
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/PKG-INFO
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/SOURCES.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/dependency_links.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/entry_points.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/requires.txt
crepo                     /usr/lib/python2.6/site-packages/crepo-0.1.8-py2.6.egg-info/top_level.txt
crepo                     /usr/lib/python2.6/site-packages/crepo.py
crepo                     /usr/lib/python2.6/site-packages/crepo.pyc
crepo                     /usr/lib/python2.6/site-packages/crepo.pyo
crepo                     /usr/lib/python2.6/site-packages/git_command.py
crepo                     /usr/lib/python2.6/site-packages/git_command.pyc
crepo                     /usr/lib/python2.6/site-packages/git_command.pyo
crepo                     /usr/lib/python2.6/site-packages/git_repo.py
crepo                     /usr/lib/python2.6/site-packages/git_repo.pyc
crepo                     /usr/lib/python2.6/site-packages/git_repo.pyo
crepo                     /usr/lib/python2.6/site-packages/manifest.py
crepo                     /usr/lib/python2.6/site-packages/manifest.pyc
crepo                     /usr/lib/python2.6/site-packages/manifest.pyo
crepo                     /usr/lib/python2.6/site-packages/test.py
crepo                     /usr/lib/python2.6/site-packages/test.pyc
crepo                     /usr/lib/python2.6/site-packages/test.pyo
crepo                     /usr/lib/python2.6/site-packages/trace.py
crepo                     /usr/lib/python2.6/site-packages/trace.pyc
crepo                     /usr/lib/python2.6/site-packages/trace.pyo

This seems better for production systems.
  • Loading branch information...
commit 1ce5f973a58010ba2efbfa5ebaedbe3ce7180834 1 parent e8a9695
@traviscrawford traviscrawford authored metcalfc committed
Showing with 0 additions and 1 deletion.
  1. +0 −1  setup.py
View
1  setup.py
@@ -10,6 +10,5 @@
maintainer_email="chad@cloudera.com",
py_modules=['crepo', 'git_command', 'git_repo', 'manifest', 'trace', 'test' ],
entry_points = { 'console_scripts': [ 'crepo = crepo:main', ], },
- data_files=[('shell-tests', ['shell-tests/basic_test.sh', 'shell-tests/follow_tag.sh', 'shell-tests/smoke_test.sh']),],
install_requires = ['setuptools', 'simplejson'],
)
Please sign in to comment.
Something went wrong with that request. Please try again.