跳转到主要内容

简化在虚拟环境中的SecretStorage设置

项目描述

SecretStorage Setup是一个小型项目和命令行实用程序,用于简化在SecretStorage中设置virtualenv。它主要创建是为了使开发者在keyring中使用SecretStorage后端变得容易。

使用方法

安装

此软件包应在虚拟环境中安装

# I'm using vex to create and activate virtualenv.  You can use whatever tool you are used to.
$ vex -m example
$ pip install SecretStorage-Setup

状态:缺少依赖项

如果您在系统Python中没有安装所有依赖项,您可能会看到以下内容

$ ss-setup status
dbus package...not installed for this python
Crypto package...not installed for this python
secretstorage package...not installed for this python

在这种情况下,您可以在下面的“依赖项”部分找到更多信息。另外,您可以通过运行-v来从状态命令获取更多信息

$ ss-setup status -v
dbus package...not installed for this python
Crypto package...not installed for this python
secretstorage package...not installed for this python
Troubleshooting messages follow:
<...snip...>

链接系统依赖项

由于SecretStorage的依赖项比安装到虚拟环境更容易使用系统工具安装,因此link命令将使用符号链接来设置虚拟环境以指向系统软件包

$ ss-setup status
dbus package...needs linking into virtualenv
Crypto package...needs linking into virtualenv
secretstorage package...needs linking into virtualenv

$ ss-setup link
linking successful, run the status command to verify

$ ss-setup status
dbus package...ready
Crypto package...ready
secretstorage package...ready

依赖项

SecretStorage依赖于

Debian/Ubuntu系统Python

如果您正在运行基于Debian的系统,您可以在系统Python中安装所有需要的依赖项,如下所示

$ sudo apt-get install python-dbus python-crypto python3-dbus python3-crypto

手动安装Python

如果您已将Python安装到自定义位置,则您需要手动构建dbus并手动安装软件包

# Assuming you have installed your Python in /opt/python34/ and `python3.4` is linked to the
# Python binary correctly.
$ sudo apt-get install libdbus-1-dev libdbus-glib-1-dev
$ wget http://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.0.tar.gz
$ tar -xzf dbus-python-1.2.0.tar.gz
$ cd dbus-python-1.2.0
$ PYTHON=python3.4 ./configure --prefix=/opt/python34
$ make
$ sudo make install
$ sudo /opt/python34/bin/pip install pycrypto secretstorage

问题 & 讨论

请将问题、评论、错误、功能请求等发送至:https://github.com/level12/secretstorage-setup/issues

当前状态

目前已在Ubuntu 14.04上测试

  • Ubuntu Python 2.7

  • Ubuntu Python 3.4.0

  • 手动安装Python 3.4.3

欢迎问题和拉取请求。

变更日志

0.1.1版本发布于2015-04-07

  • 修复在Ubuntu Python 2.7下使用时的bug

0.1.0版本发布于2015-04-07

  • 初始发布

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源代码分发

SecretStorage-Setup-0.1.1.tar.gz (6.3 kB 查看哈希值)

上传时间 源代码

由以下提供支持