Skip to content

Commit

Permalink
Don't copy ununused parts of contrib/tools to source distribution.. #830
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-khropov committed Mar 30, 2023
1 parent 3896117 commit a5f77c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion catboost/python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,21 @@ def copy_catboost_sources(topdir, pkgdir, verbose, dry_run):
os.path.join('catboost', 'python-package', 'catboost'),
os.path.join('catboost', 'tools'),
'cmake',
'contrib',
os.path.join('contrib', 'deprecated'),
os.path.join('contrib', 'libs'),
os.path.join('contrib', 'python'), # TODO: remove it, only numpy headers are used from there
os.path.join('contrib', 'restricted'),
os.path.join('contrib', 'tools', 'cython'),
os.path.join('contrib', 'tools', 'flatc'),
os.path.join('contrib', 'tools', 'protoc'),
'library',
'tools',
'util',
]
topnames += get_all_cmake_lists(topdir, '')
topnames += get_all_cmake_lists(topdir, 'catboost')
topnames += get_all_cmake_lists(topdir, 'contrib')
topnames += get_all_cmake_lists(topdir, os.path.join('contrib', 'tools'))

# we have to include them all (not only python-package) to avoid CMake configuration errors
for sub_dir in ['R-package', 'app', 'jvm-packages', 'python-package', 'spark']:
Expand Down

0 comments on commit a5f77c7

Please sign in to comment.