X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/16f704326f44fd1e5e5e60b936c9b5895d6a6ff8..5022c4068227e4d354389169a9abd726206aff7d:/sdk/pam/setup.py diff --git a/sdk/pam/setup.py b/sdk/pam/setup.py index c94f5b41f5..063ca2625c 100755 --- a/sdk/pam/setup.py +++ b/sdk/pam/setup.py @@ -17,6 +17,11 @@ README = os.path.join(SETUP_DIR, 'README.rst') import arvados_version version = arvados_version.get_version(SETUP_DIR, "arvados_pam") +if os.environ.get('ARVADOS_BUILDING_VERSION', False): + pysdk_dep = "=={}".format(version) +else: + # On dev releases, arvados-python-client may have a different timestamp + pysdk_dep = "<={}".format(version) short_tests_only = False if '--short-tests-only' in sys.argv: @@ -42,16 +47,9 @@ setup(name='arvados-pam', ('share/pam-configs', ['pam-configs/arvados']), ('share/doc/arvados-pam', ['LICENSE-2.0.txt', 'README.rst']), ('share/doc/arvados-pam/examples', glob.glob('examples/*')), - - # The arvados build scripts used to install data files to - # "/usr/data/*" but now install them to "/usr/*". Here, we - # install an extra copy in the old location so existing pam - # configs can still work. When old systems have had a chance - # to update to the new paths, this line can be removed. - ('data/lib/security', ['lib/libpam_arvados.py']), ], install_requires=[ - 'arvados-python-client>=0.1.20150801000000', + 'arvados-python-client{}'.format(pysdk_dep), ], test_suite='tests', tests_require=['pbr<1.7.0', 'mock>=1.0', 'python-pam'],