Skip to content

Commit

Permalink
define entry point for the plasma store
Browse files Browse the repository at this point in the history
  • Loading branch information
pcmoritz committed Aug 18, 2017
1 parent 4ef7c89 commit 4c05140
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions python/pyarrow/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,16 @@

localfs = LocalFileSystem.get_instance()

# Entry point for starting the plasma store

def start_plasma_store():
import os
import pyarrow
import subprocess
import sys
plasma_store_executable = os.path.join(pyarrow.__path__[0], "plasma_store")
process = subprocess.Popen([plasma_store_executable] + sys.argv[1:])
process.wait()

# ----------------------------------------------------------------------
# 0.4.0 deprecations
Expand Down
5 changes: 5 additions & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ def has_ext_modules(foo):
'clean': clean,
'build_ext': build_ext
},
entry_points = {
'console_scripts': [
'plasma_store = pyarrow:start_plasma_store'
]
},
use_scm_version={"root": "..", "relative_to": __file__},
setup_requires=['setuptools_scm', 'cython >= 0.23'],
install_requires=['numpy >= 1.10', 'six >= 1.0.0'],
Expand Down

0 comments on commit 4c05140

Please sign in to comment.