-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.1.2 : better setup.py, especially for Windows users
- Loading branch information
Alberto Pettarin
committed
Sep 24, 2015
1 parent
63e76fe
commit 47da67b
Showing
52 changed files
with
317 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
MANIFEST | ||
aeneas/build | ||
bak | ||
build | ||
dist | ||
docs/build | ||
tmp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.1 | ||
1.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ __copyright__ = """ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,44 @@ | |
.. versionadded:: 1.1.0 | ||
""" | ||
|
||
print 'Deprecated. Use "python setup.py build" in the main directory' | ||
import os | ||
import sys | ||
|
||
from distutils.core import setup, Extension | ||
from numpy.distutils import misc_util | ||
|
||
__author__ = "Alberto Pettarin" | ||
__copyright__ = """ | ||
Copyright 2012-2013, Alberto Pettarin (www.albertopettarin.it) | ||
Copyright 2013-2015, ReadBeyond Srl (www.readbeyond.it) | ||
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
for compiled in ["cdtw.so", "cdtw.dylib", "cdtw.dll"]: | ||
if os.path.exists(compiled): | ||
try: | ||
os.remove(compiled) | ||
print "[INFO] Removed file %s\n" % compiled | ||
except: | ||
pass | ||
|
||
CMODULE = Extension("cdtw", sources=["cdtw.c"]) | ||
|
||
setup( | ||
name="cdtw", | ||
version="1.1.1", | ||
description=""" | ||
Python C Extension for computing the DTW as fast as your bare metal allows. | ||
""", | ||
ext_modules=[CMODULE], | ||
include_dirs=misc_util.get_numpy_include_dirs() | ||
) | ||
|
||
print "\n[INFO] Module cdtw successfully compiled\n" | ||
sys.exit(0) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ __copyright__ = """ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,44 @@ | |
.. versionadded:: 1.1.0 | ||
""" | ||
|
||
print 'Deprecated. Use "python setup.py build" in the main directory' | ||
import os | ||
import sys | ||
|
||
from distutils.core import setup, Extension | ||
from numpy.distutils import misc_util | ||
|
||
__author__ = "Alberto Pettarin" | ||
__copyright__ = """ | ||
Copyright 2012-2013, Alberto Pettarin (www.albertopettarin.it) | ||
Copyright 2013-2015, ReadBeyond Srl (www.readbeyond.it) | ||
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
for compiled in ["cmfcc.so", "cmfcc.dylib", "cmfcc.dll"]: | ||
if os.path.exists(compiled): | ||
try: | ||
os.remove(compiled) | ||
print "[INFO] Removed file %s\n" % compiled | ||
except: | ||
pass | ||
|
||
CMODULE = Extension("cmfcc", sources=["cmfcc.c"]) | ||
|
||
setup( | ||
name="cmfcc", | ||
version="1.1.1", | ||
description=""" | ||
Python C Extension for computing the MFCCs as fast as your bare metal allows. | ||
""", | ||
ext_modules=[CMODULE], | ||
include_dirs=misc_util.get_numpy_include_dirs() | ||
) | ||
|
||
print "\n[INFO] Module cmfcc successfully compiled\n" | ||
sys.exit(0) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
Copyright 2015, Alberto Pettarin (www.albertopettarin.it) | ||
""" | ||
__license__ = "GNU AGPL v3" | ||
__version__ = "1.1.1" | ||
__version__ = "1.1.2" | ||
__email__ = "[email protected]" | ||
__status__ = "Production" | ||
|
||
|
Oops, something went wrong.