Skip to content

Commit

Permalink
Merge pull request #361 from timkpaine/python
Browse files Browse the repository at this point in the history
Fix merge error with renamed types #358
  • Loading branch information
texodus authored Jan 4, 2019
2 parents c1fdaaa + bf060c5 commit fe098a4
Show file tree
Hide file tree
Showing 12 changed files with 86 additions and 274 deletions.
8 changes: 8 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
prune examples/
prune test_data/
prune perspective/*.so
prune perspective/include/
prune perspective/src/
prune src/
include python/requirements.txt
include CMakeList.txt
201 changes: 0 additions & 201 deletions python/LICENSE

This file was deleted.

4 changes: 0 additions & 4 deletions python/MANIFEST.in

This file was deleted.

10 changes: 5 additions & 5 deletions python/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build: ## build the package
python3 setup.py build
cd .. && python3 setup.py build

inplace: ## copy things inplace
cp `find build -name "libbinding.so"` perspective/
cp `find build -name "libpsp.so"` perspective/
cp `find ../build -name "libbinding.so"` perspective/table/
cp `find ../build -name "libpsp.so"` perspective/table/

tests: inplace ## Clean and Make unit tests
python3 -m nose2 -v perspective --with-coverage --coverage=perspective
Expand Down Expand Up @@ -31,7 +31,7 @@ clean: ## clean the repository
find . -name "*.a" | xargs rm -rf

install: ## install to site-packages
python3 setup.py install
python3 -m pip install ..

preinstall: ## install dependencies
python3 -m pip install -r requirements.txt
Expand All @@ -40,7 +40,7 @@ docs: ## make documentation
make -C ./docs html

dist: ## dist to pypi
python3 setup.py sdist upload -r pypi
cd .. && python3 setup.py sdist upload -r pypi

# Thanks to Francoise at marmelab.com for this
.DEFAULT_GOAL := help
Expand Down
Empty file removed python/README.md
Empty file.
10 changes: 5 additions & 5 deletions python/perspective/include/perspective/binding.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ void test(const char* name);
perspective::t_schema* t_schema_init(py::list& columns, py::list& types);

template<typename T>
void _fill_col(std::vector<T>& dcol, perspective::t_col_sptr col);
void _fill_col(std::vector<T>& dcol, std::shared_ptr<perspective::t_column> col);

template<typename T>
void _fill_col_np(np::ndarray& dcol, perspective::t_col_sptr col);
void _fill_col_np(np::ndarray& dcol, std::shared_ptr<perspective::t_column> col);


void _fill_data_single_column(perspective::t_table& tbl,
Expand Down Expand Up @@ -80,7 +80,7 @@ BOOST_PYTHON_MODULE(libbinding)


py::class_<perspective::t_schema>("t_schema",
py::init<perspective::t_svec, perspective::t_dtypevec>())
py::init<std::vector<std::string>, std::vector<perspective::t_dtype> >())
.def(py::init<>())
.def(py::init<perspective::t_schema_recipe>())

Expand Down Expand Up @@ -132,8 +132,8 @@ BOOST_PYTHON_MODULE(libbinding)

.def("pprint", static_cast<void (perspective::t_table::*)() const>(&perspective::t_table::pprint))
.def("pprint", static_cast<void (perspective::t_table::*)(perspective::t_uindex, std::ostream*) const>(&perspective::t_table::pprint))
.def("pprint", static_cast<void (perspective::t_table::*)(const perspective::t_str&) const>(&perspective::t_table::pprint))
.def("pprint", static_cast<void (perspective::t_table::*)(const perspective::t_uidxvec&) const>(&perspective::t_table::pprint))
.def("pprint", static_cast<void (perspective::t_table::*)(const std::string&) const>(&perspective::t_table::pprint))
.def("pprint", static_cast<void (perspective::t_table::*)(const std::vector<perspective::t_uindex>&) const>(&perspective::t_table::pprint))


// custom add ins
Expand Down
Loading

0 comments on commit fe098a4

Please sign in to comment.