1+ # -*- coding: utf-8 -*-
12# *****************************************************************************
23# Copyright (c) 2019, Intel Corporation All rights reserved.
34#
2728from setuptools import setup , Extension , find_packages , Command
2829import platform
2930import os
30- from distutils .command import build
31- from distutils .spawn import spawn
31+ from docs .source .buildscripts .sdc_build_doc import SDCBuildDoc
3232
3333
3434# Note we don't import Numpy at the toplevel, since setup.py
3838#import copy
3939import versioneer
4040
41+ # String constants for Intel SDC project configuration
42+ SDC_NAME_STR = 'Intel® Scalable Dataframe Compiler'
43+
4144# Inject required options for extensions compiled against the Numpy
4245# C API (include dirs, library dirs etc.)
4346np_compile_args = np_misc .get_info ('npymath' )
4447
4548is_win = platform .system () == 'Windows'
4649
47- # Sphinx User's Documentation Build
48-
49-
50- class build_doc (build .build ):
51- description = "Build user's documentation"
52-
53- def run (self ):
54- spawn (['rm' , '-rf' , 'docs/_build' , 'API_doc' , 'docs/usersource/api/' ])
55- spawn (['python' , 'docs/rename_function.py' ])
56- spawn (['sphinx-build' , '-b' , 'html' , '-d' , 'docs/_build/docstrees' ,
57- '-j1' , 'docs/usersource' , '-t' , 'user' , 'docs/_build/html' ])
58- spawn (['python' , 'docs/CleanRSTfiles.py' ])
59- spawn (['sphinx-build' , '-b' , 'html' , '-d' , 'docs/_build/docstrees' ,
60- '-j1' , 'docs/usersource' , '-t' , 'user' , 'docs/_build/html' ])
61-
62- # Sphinx Developer's Documentation Build
63-
64-
65- class build_devdoc (build .build ):
66- description = "Build developer's documentation"
67-
68- def run (self ):
69- spawn (['rm' , '-rf' , 'docs/_builddev' ])
70- spawn (['sphinx-build' , '-b' , 'html' , '-d' , 'docs/_builddev/docstrees' ,
71- '-j1' , 'docs/devsource' , '-t' , 'developer' , 'docs/_builddev/html' ])
72-
7350
7451def readme ():
7552 with open ('README.rst' , encoding = 'utf-8' ) as f :
@@ -268,14 +245,6 @@ def readme():
268245if _has_opencv :
269246 _ext_mods .append (ext_cv_wrapper )
270247
271- # Custom build commands
272- #
273- # These commands extends standart setuptools build procedure
274- #
275- sdc_build_commands = versioneer .get_cmdclass ()
276- sdc_build_commands ['build_doc' ] = build_doc
277- sdc_build_commands ['build_devdoc' ] = build_devdoc
278-
279248
280249class style (Command ):
281250 """ Command to check and adjust code style
@@ -394,11 +363,19 @@ def run(self):
394363 print ("%s Style check passed" % self ._result_marker )
395364
396365
366+ # Custom build commands
367+ #
368+ # These commands extend standard setuptools build procedure
369+ #
370+ sdc_build_commands = versioneer .get_cmdclass ()
371+ sdc_build_commands ['build_doc' ] = SDCBuildDoc
397372sdc_build_commands .update ({'style' : style })
373+ sdc_version = versioneer .get_version ()
374+ sdc_release = 'Alpha ({})' .format (versioneer .get_version ())
398375
399- setup (name = 'sdc' ,
400- version = versioneer . get_version () ,
401- description = 'compiling Python code for clusters ' ,
376+ setup (name = SDC_NAME_STR ,
377+ version = sdc_version ,
378+ description = 'Numba* extension for compiling Pandas* operations ' ,
402379 long_description = readme (),
403380 classifiers = [
404381 "Development Status :: 2 - Pre-Alpha" ,
@@ -409,9 +386,9 @@ def run(self):
409386 "Topic :: Software Development :: Compilers" ,
410387 "Topic :: System :: Distributed Computing" ,
411388 ],
412- keywords = 'data analytics cluster ' ,
389+ keywords = 'data analytics distributed Pandas Numba ' ,
413390 url = 'https://github.com/IntelPython/sdc' ,
414- author = 'Intel' ,
391+ author = 'Intel Corporation ' ,
415392 packages = find_packages (),
416393 package_data = {'sdc.tests' : ['*.bz2' ], },
417394 install_requires = ['numba' ],
@@ -421,6 +398,5 @@ def run(self):
421398 entry_points = {
422399 "numba_extensions" : [
423400 "init = sdc:_init_extension" ,
424- ],
425- },
426- )
401+ ]},
402+ )
0 commit comments