-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed installation process to use entry_points.console_scripts to mak…
…e scripts accessible in a cross-platform way
- Loading branch information
1 parent
d059f3c
commit 55fc4a6
Showing
23 changed files
with
57 additions
and
30 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
include *.md | ||
recursive-include tutorials * | ||
recursive-include scripts * | ||
recursive-include mtools *.py | ||
recursive-include mtools/data * |
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,3 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
print "deprecated since version 1.1.0 of mtools. Use 'mlogfilter <logfile> --json' instead." | ||
def main(): | ||
print "deprecated since version 1.1.0 of mtools. Use 'mlogfilter <logfile> --json' instead." | ||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
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,3 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
print "deprecated since version 1.1.0 of mtools. Use 'mloginfo <logfile> --distinct' instead." | ||
def main(): | ||
print "deprecated since version 1.1.0 of mtools. Use 'mloginfo <logfile> --distinct' instead." | ||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
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,3 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
print "deprecated since version 1.1.0 of mtools. Use 'mlogfilter <logfile> <logfile> ...' instead." | ||
def main(): | ||
print "deprecated since version 1.1.0 of mtools. Use 'mlogfilter <logfile> <logfile> ...' instead. | ||
|
||
if __name__ == '__main__': | ||
sys.exit(main())" |
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,3 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
print "deprecated since version 1.1.0 of mtools. Use 'mloginfo <logfile>' instead." | ||
def main(): | ||
print "deprecated since version 1.1.0 of mtools. Use 'mloginfo <logfile>' instead." | ||
|
||
if __name__ == '__main__': | ||
sys.exit(main())" |
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
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -62,7 +62,6 @@ | |
with open('README.md') as f: | ||
long_description = f.read() | ||
|
||
|
||
if sys.platform == 'darwin' and 'clang' in platform.python_compiler().lower(): | ||
from distutils.sysconfig import get_config_vars | ||
res = get_config_vars() | ||
|
@@ -79,8 +78,20 @@ | |
package_data = { | ||
'mtools': ['data/log2code.pickle', 'data/index.html'], | ||
}, | ||
scripts=['scripts/mlaunch', 'scripts/mlogfilter', 'scripts/mlogvis', 'scripts/mplotqueries', 'scripts/mloginfo', \ | ||
'scripts/mlogversion', 'scripts/mlogmerge', 'scripts/mlog2json', 'scripts/mlogdistinct', 'scripts/mgenerate'], | ||
entry_points={ | ||
"console_scripts": [ | ||
"mgenerate=mtools.mgenerate.mgenerate:main", | ||
"mlaunch=mtools.mlaunch.mlaunch:main", | ||
"mlog2json=mtools.mlog2json.mlog2json:main", | ||
"mlogdistinct=mtools.mlogdistinct.mlogdistinct:main", | ||
"mlogfilter=mtools.mlogfilter.mlogfilter:main", | ||
"mloginfo=mtools.mloginfo.mloginfo:main", | ||
"mlogmerge=mtools.mlogmerge.mlogmerge:main", | ||
"mlogversion=mtools.mlogversion.mlogversion:main", | ||
"mlogvis=mtools.mlogvis.mlogvis:main", | ||
"mplotqueries=mtools.mplotqueries.mplotqueries:main" | ||
], | ||
}, | ||
author='Thomas Rueckstiess', | ||
author_email='[email protected]', | ||
url='https://github.com/rueckstiess/mtools', | ||
|