Permalink
Browse files

- Moved psafedump again

-- Also renamed so that it won't have the .py ext when in /usr/bin
- Added setup script
- Updated README so that it refrences the setup script
  • Loading branch information...
1 parent ed26855 commit 3ee1be28d395f826d00e3d9daba3804ec97191f9 @gpmidi committed Jul 23, 2011
Showing with 39 additions and 7 deletions.
  1. +3 −0 .gitignore
  2. +2 −0 MANIFEST.in
  3. +3 −7 README
  4. 0 src/psafedump.py → psafedump
  5. +31 −0 setup.py
View
@@ -1,3 +1,6 @@
/.project
/.pydevproject
/.settings
+/MANIFEST
+/dist
+/python-pypwsafe-0.1
View
@@ -0,0 +1,2 @@
+include LICENSE README
+recursive-include src/ *
View
@@ -19,12 +19,8 @@ Install Instructions
yum install libmcrypt-devel libmcrypt
These packages are needed by
2) Use Pip or easy install to install python-mcrypt
-3) Create the pypwsafe directory
- mkdir /usr/lib/python2.4/site-packages/pypwsafe
-4) Copy the pypwsafe module files
- cp <path to extracted files>/pypwsafe/*.py /usr/lib/python2.4/site-packages/pypwsafe
-5) Test that the module loads
+3) Run the setup script
+ python setup.py install
+4) Test that the module loads
python -c "import pypwsafe"
-6) (Optional) Copy the executables to /usr/bin
- cp <path to extracted files>/{psafedump.py} /usr/bin/
File renamed without changes.
View
@@ -0,0 +1,31 @@
+#!/usr/bin/python
+''' Install pypwsafe
+Created on Jul 23, 2011
+
+@author: paulson mcintyre <paul@gpmidi.net>
+'''
+from distutils.core import setup, Extension
+
+VERSION = "0.1"
+
+setup(name = "python-pypwsafe",
+ version = VERSION,
+ description = "Python interface to Password Safe files",
+ author = "Paulson McIntyre",
+ author_email = "paul@gpmidi.net",
+ license = "GPL",
+ long_description = \
+"""
+Python interface to Password Safe files.
+""",
+ url = 'https://github.com/ronys/pypwsafe',
+ packages = [
+ 'pypwsafe',
+ ],
+ package_dir = {
+ '':'src',
+ },
+ scripts = [
+ "psafedump",
+ ],
+ )

0 comments on commit 3ee1be2

Please sign in to comment.