-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve compilation error handling (#55)
* Add check on backend compilation exit status * Update package version * Run compilation as subprocess * Remove debug compilation warnings * Update package version * Fix installation tests
- Loading branch information
Showing
6 changed files
with
41 additions
and
61 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
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
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,36 +1,46 @@ | ||
|
||
import os | ||
import sys | ||
from pathlib import Path | ||
from setuptools import setup | ||
import subprocess | ||
|
||
__version__ = "2.2.5" | ||
__version__ = "2.2.6" | ||
|
||
this_directory = Path(__file__).parent | ||
long_description = (this_directory/'README.md').read_text() | ||
|
||
if sys.argv[1] != 'sdist': | ||
os.system("cmake -B build && make -C build") | ||
cmake_command = ['cmake', '-B', 'build'] | ||
make_command = ['make', '-C', 'build'] | ||
|
||
try: | ||
# Execute the cmake command and print its output | ||
subprocess.check_call(cmake_command, stderr=subprocess.STDOUT) | ||
# Execute the make command and print its output | ||
subprocess.check_call(make_command, stderr=subprocess.STDOUT) | ||
except subprocess.CalledProcessError as e: | ||
print(e.output) | ||
sys.exit(e.returncode) | ||
|
||
|
||
setup( | ||
name="CLUEstering", | ||
version=__version__, | ||
author="Simone Balducci", | ||
author_email="[email protected]", | ||
description='''A library that generalizes the original 2-dimensional CLUE | ||
algorithm made at CERN.''', | ||
algorithm made at CERN.''', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
packages=['CLUEstering'], | ||
install_requires=['scikit-learn','numpy','matplotlib','pandas'], | ||
install_requires=['scikit-learn', 'numpy', 'matplotlib', 'pandas'], | ||
package_data={'': []}, | ||
keywords=['Python','Clustering','Binding'], | ||
keywords=['Python', 'Clustering', 'Binding'], | ||
python_requires='>=3.7', | ||
classifiers=[ | ||
'Intended Audience :: Developers', | ||
'Programming Language :: Python :: 3', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
'Intended Audience :: Developers', | ||
'Programming Language :: Python :: 3', | ||
'Operating System :: Unix', | ||
'Operating System :: MacOS :: MacOS X', | ||
'Operating System :: Microsoft :: Windows', | ||
] | ||
) |