-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from mrakitin/fix-imports-and-cli-viewer
Fix imports and add CLI file viewer
- Loading branch information
Showing
4 changed files
with
18 additions
and
21 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
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 |
---|---|---|
|
@@ -77,16 +77,16 @@ def build_extension(self, ext): | |
base_dir = os.path.dirname(os.path.realpath(__file__)) | ||
original_src_dir = os.path.join(base_dir, '../..') | ||
|
||
#Read README.md for long_description | ||
long_description = open(os.path.join(base_dir, 'README.md')).read() | ||
# Read README.md for long_description | ||
long_description = open(os.path.join(original_src_dir, 'README.md')).read() | ||
|
||
with open(os.path.join(base_dir, 'requirements.txt')) as requirements_file: | ||
# Parse requirements.txt, ignoring any commented-out lines. | ||
requirements = [line for line in requirements_file.read().splitlines() | ||
if not line.startswith('#')] | ||
|
||
setup(name='srwpy', | ||
version='4.0.0b0', | ||
version='4.0.0b1', | ||
description='This is SRW for Python', | ||
author='O. Chubar et al.', | ||
author_email='[email protected]', | ||
|
@@ -99,4 +99,7 @@ def build_extension(self, ext): | |
zip_safe=False, | ||
ext_modules=[CMakeExtension('srwlpy', original_src_dir, 'srwpy')], | ||
cmdclass=dict(build_ext=CMakeBuild), | ||
entry_points={ | ||
'console_scripts': ['srw-viewer=srwpy.SRWLIB_ExampleViewDataFile: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