Skip to content

Commit

Permalink
[PyPI] Remove dill, pytest, pytest-xdist from end-user hard dependenc…
Browse files Browse the repository at this point in the history
  • Loading branch information
archibate authored Jul 13, 2020
1 parent 2109e8b commit 7c504ce
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
7 changes: 6 additions & 1 deletion python/taichi/lang/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ def __init__(self):

elif self.name == ShellType.NATIVE:
# `dill.source` for "Python native shell"
import dill
try:
import dill
except ImportError as e:
raise ImportError(
'In order to run Taichi in Python interactive shell, '
'Please execute `python3 -m pip install --user dill`')
self.getsource = dill.source.getsource
self.getsourcelines = dill.source.getsourcelines
self.getsourcefile = dill.source.getsourcefile
Expand Down
57 changes: 26 additions & 31 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,31 @@
packages = setuptools.find_packages() + ['taichi.examples']
print(packages)

setuptools.setup(
name=project_name,
packages=packages,
version=version,
description='The Taichi Programming Language',
author='Yuanming Hu',
author_email='[email protected]',
url='https://github.com/taichi-dev/taichi',
install_requires=[
'numpy',
'pybind11>=2.5.0',
'colorama',
'setuptools',
'astor',
'dill',
# For testing:
'pytest',
'pytest-xdist',
],
data_files=[('lib', data_files)],
keywords=['graphics', 'simulation'],
license='MIT',
include_package_data=True,
entry_points={
'console_scripts': [
'ti=taichi.main:main',
'tid=taichi.main:main_debug',
],
},
classifiers=classifiers,
has_ext_modules=lambda: True)
setuptools.setup(name=project_name,
packages=packages,
version=version,
description='The Taichi Programming Language',
author='Taichi developers',
author_email='[email protected]',
url='https://github.com/taichi-dev/taichi',
install_requires=[
'numpy',
'pybind11>=2.5.0',
'colorama',
'setuptools',
'astor',
],
data_files=[('lib', data_files)],
keywords=['graphics', 'simulation'],
license='MIT',
include_package_data=True,
entry_points={
'console_scripts': [
'ti=taichi.main:main',
'tid=taichi.main:main_debug',
],
},
classifiers=classifiers,
has_ext_modules=lambda: True)

# Note: this is a template setup.py used by python/build.py

0 comments on commit 7c504ce

Please sign in to comment.