File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 44# SPDX-License-Identifier: Apache-2.0
55from codecs import open
66from setuptools import setup , find_packages
7+ from distutils .command .install import install as _install
8+
9+
10+ def _post_install (dir ):
11+ from subprocess import call
12+ call (['scancode' , '--reindex-licenses' ])
13+
14+
15+ class install (_install ):
16+ def run (self ):
17+ _install .run (self )
18+ self .execute (_post_install , (self .install_lib ,),
19+ msg = "Running post install task" )
20+
721
822with open ('README.md' , 'r' , 'utf-8' ) as f :
923 readme = f .read ()
3044 "Programming Language :: Python :: 3.8" ,
3145 "Programming Language :: Python :: 3.9" , ],
3246 python_requires = ">=3.7" ,
47+ cmdclass = {'install' : install },
3348 install_requires = required ,
3449 extras_require = {":python_version>'3.6'" : ["scanoss>=0.7.0" ],
3550 ":python_version<'3.7'" : ["dataclasses" , "scanoss" ]},
You can’t perform that action at this time.
0 commit comments