Skip to content

Commit

Permalink
Merge pull request rapidsai#14 from sklam/condarecipe
Browse files Browse the repository at this point in the history
Add conda recipes
  • Loading branch information
seibert authored Jun 1, 2017
2 parents 1acf434 + f7fb59b commit bb9f7f2
Show file tree
Hide file tree
Showing 6 changed files with 105 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,10 @@ add_custom_target(pytest DEPENDS copy_python)
add_custom_command(
TARGET pytest POST_BUILD
COMMAND py.test -v)

# The install target

install(TARGETS gdf
LIBRARY DESTINATION lib)

install(DIRECTORY include/gdf DESTINATION include)
16 changes: 16 additions & 0 deletions conda-recipes/libgdf/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CMAKE_COMMON_VARIABLES=" -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release"


if [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then
# C++11 requires 10.9
# but cudatoolkit 8 is build for 10.11
export MACOSX_DEPLOYMENT_TARGET=10.11
fi

# Use CMake-based build procedure
mkdir build
cd build
# configure
cmake $CMAKE_COMMON_VARIABLES ..
# build
make install
30 changes: 30 additions & 0 deletions conda-recipes/libgdf/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Usage:
# conda build -c defaults -c conda-forge .
package:
name: libgdf
version: {{ environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') }}

source:
git_url: ../..

build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}

requirements:
# use channel:
# - defaults
# - conda-forge
build:
- cmake
- flatbuffers

test:
commands:
- test -f $PREFIX/include/gdf/gdf.h # [unix or osx]
- test -f $PREFIX/lib/libgdf.dylib # [osx]

about:
home: http://gpuopenanalytics.com/
license: Apache
# license_file: LICENSE
summary: GPU Dataframe core library
19 changes: 19 additions & 0 deletions conda-recipes/libgdf_cffi/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CMAKE_COMMON_VARIABLES=" -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release"


# if [ -n "$MACOSX_DEPLOYMENT_TARGET" ]; then
# # C++11 requires 10.9
# # but cudatoolkit 8 is build for 10.11
# export MACOSX_DEPLOYMENT_TARGET=10.11
# fi

# Use CMake-based build procedure
mkdir build
cd build
# configure
cmake ..
# build
make copy_python
# install
python setup.py install --single-version-externally-managed --record=record.txt

32 changes: 32 additions & 0 deletions conda-recipes/libgdf_cffi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package:
name: libgdf_cffi
version: {{ environ.get('GIT_DESCRIBE_TAG', '0.0.0.dev').lstrip('v') }}

source:
git_url: ../..

build:
number: {{ environ.get('GIT_DESCRIBE_NUMBER', 0) }}

requirements:
# use channel:
# - defaults
build:
- cmake
- python x.x
- cffi
- setuptools
run:
- libgdf
- python x.x
- cffi

test:
commands:
- python -c "import libgdf_cffi"

about:
home: http://gpuopenanalytics.com/
license: Apache
# license_file: LICENSE
summary: GPU Dataframe core library
1 change: 1 addition & 0 deletions python/setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from setuptools import setup

setup(name='libgdf_cffi',
version="0.1.0a1",
packages=["libgdf_cffi"],
setup_requires=["cffi>=1.0.0"],
cffi_modules=["libgdf_cffi/libgdf_build.py:ffibuilder"],
Expand Down

0 comments on commit bb9f7f2

Please sign in to comment.