Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Improvements #327

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.git/

build
dist
*.egg-info
*.egg/
*.pyc
*.swp

.tox
.coverage
html/*
__pycache__

# Compiled Documentation
docs/_build
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
language: python

python:
- 2.7
- 3.5
- 3.7

sudo: required

install:
- sudo apt-get install gfortran python-liblas libblas-dev liblapack-dev libatlas-dev
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install .[tf]
- sudo apt-get update
# We do this conditionally because it saves us some downloading if the
# version is the same.
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- source "$HOME/miniconda/etc/profile.d/conda.sh"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
# Useful for debugging any issues with conda
- conda info -a

# Install deps
- make install

script:
- make download-test-data
Expand Down
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM continuumio/miniconda:4.7.12

RUN apt-get update -y && \
apt-get install -y --no-install-recommends build-essential && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

WORKDIR /yass

ENV PATH /opt/conda/bin:$PATH

COPY . /yass

RUN make install

4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.DEFAULT_GOAL := help
.PHONY: test integration-test

install: ## Install Locally
conda env update -f environment.yml
cd src/gpu_bspline_interp && conda run -n yass python setup.py install --force
cd src/gpu_rowshift && conda run -n yass python setup.py install --force

test: ## Run Tests
@echo "--> Running Tests"
Expand Down
19 changes: 19 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: yass
channels:
- conda-forge
- pytorch
- defaults
dependencies:
- python=3.7
- conda-build
- cudatoolkit-dev=10.1
- pytorch==1.3.1
- numpydoc
- pytest-cov
- pytest-flake8
- pytest>=3.5.0
- sphinx>=1.6
- pip
- pip:
- sphinxcontrib-blockdiag
- -e .
14 changes: 0 additions & 14 deletions requirements.txt

This file was deleted.