gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libextractor-python] branch master updated: layout changes


From: gnunet
Subject: [GNUnet-SVN] [libextractor-python] branch master updated: layout changes
Date: Sat, 02 Dec 2017 13:45:19 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository libextractor-python.

The following commit(s) were added to refs/heads/master by this push:
     new f6886a5  layout changes
f6886a5 is described below

commit f6886a5a95e99a23b2f3fa2cc99fba2efb259623
Author: ng0 <address@hidden>
AuthorDate: Sat Dec 2 12:43:29 2017 +0000

    layout changes
    
    * move extract.py as it is an example -> examples/extract.py
    * create 'libextractor' package and use it in the setup.py,
    move extractor.py to the package folder and init the package.
---
 extract.py => examples/extract.py         | 2 +-
 libextractor/__init__.py                  | 0
 extractor.py => libextractor/extractor.py | 0
 setup.py                                  | 4 ++--
 4 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/extract.py b/examples/extract.py
similarity index 97%
rename from extract.py
rename to examples/extract.py
index 2521d07..bf05f6d 100644
--- a/extract.py
+++ b/examples/extract.py
@@ -24,7 +24,7 @@ Little demo how to use the libextractor Python binding.
 
 """
 from __future__ import print_function
-import extractor
+from libextractor import extractor
 import sys
 from ctypes import *
 import struct
diff --git a/libextractor/__init__.py b/libextractor/__init__.py
new file mode 100644
index 0000000..e69de29
diff --git a/extractor.py b/libextractor/extractor.py
similarity index 100%
rename from extractor.py
rename to libextractor/extractor.py
diff --git a/setup.py b/setup.py
index 76f8545..e273104 100644
--- a/setup.py
+++ b/setup.py
@@ -8,8 +8,8 @@ setup(
     name = "Extractor",
     version = "0.6",
 
-    py_modules = ['extractor'],
-    scripts = ['extract.py'],
+    packages = ['libextractor'],
+    scripts = ['examples/extract.py'],
 
     #install_requires = ['ctypes >= 0.9'],
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]