error: option --single-version-externally-managed not recognized

745 views
Skip to first unread message

Svetlana Shturm

unread,
Feb 13, 2013, 12:57:08 AM2/13/13
to salt-...@googlegroups.com
I'm trying to install salt 0.13 by pip into virtual environment, but i get this error
 Installing collected packages: salt
  Running setup.py install for salt
    Cannot load esky build target
    Please install the 'esky' and the 'bbfreeze' modules to enable this functionality
    salt/version.py:91: UserWarning: In order to get the proper salt version with the git hash you need to update salt's local git tags. Something like: 'git fetch --tags' or 'git fetch --tags upstream' if you followed salt's contribute documentation. The version string WILL NOT include the git hash.
      __version__, __version_info__ = __get_version(__version__, __version_info__)
    /var/lib/jenkins/workspace/spirit-ads-unittests-gerrit/ads/build/salt/setup.py:91: UserWarning: In order to get the proper salt version with the git hash you need to update salt's local git tags. Something like: 'git fetch --tags' or 'git fetch --tags upstream' if you followed salt's contribute documentation. The version string WILL NOT include the git hash.
      test_process = Popen(
    0.13.0
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help
   
    error: option --single-version-externally-managed not recognized
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/var/lib/jenkins/workspace/spirit-ads-unittests-gerrit/ads/build/salt/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-CTHOLm-record/install-record.txt:
    Cannot load esky build target

Please install the 'esky' and the 'bbfreeze' modules to enable this functionality

How can i install this version into venv by pip?

Sean Channel

unread,
Feb 13, 2013, 3:26:40 AM2/13/13
to salt-...@googlegroups.com, Svetlana Shturm

The two messages are only warnings, but it looks like some cleanup is
needed here.

- the esky / bbfreeze message is in case you want a frozen build with
automatic updates
http://docs.saltstack.org/en/latest/topics/tutorials/esky.html

- the proper version / git tags message is to let you know about the
extra step needed for salt to report the correct version; run 'git fetch
--tags upstream' to fix this.

Do you still get a working salt in bin/ in your virtualenv?
_S

Svetlana Shturm

unread,
Feb 13, 2013, 3:52:58 AM2/13/13
to salt-...@googlegroups.com, Svetlana Shturm
 I can get the working copy of salt if i run the "python setup.py install" command in the /build folder under my venv. In this case there is no need to install esky / bbfreeze. All works good.
But problem in the need of install salt by pip without any manipulations (for run tests and creation virtual environment).

Svetlana Shturm

unread,
Feb 13, 2013, 6:21:39 AM2/13/13
to salt-...@googlegroups.com, Svetlana Shturm
In fact it was the problem in salt. It use distutils by default, that doesn't have the  option  --single-version-externally-managed. We should use install command from setuptools instead of distutils and do it by default.

https://github.com/saltstack/salt/issues/3701
https://github.com/saltstack/salt/pull/3698
Reply all
Reply to author
Forward
0 new messages