diff --git a/Makefile b/Makefile index 8aa4930..ab52439 100644 --- a/Makefile +++ b/Makefile @@ -2,40 +2,43 @@ NAME = colab-deps VERSION = 1.11 PREFIX = /usr TARGET = $(DESTDIR)$(PREFIX)/lib/colab +DISTDIR = $(NAME)-$(VERSION) +TARBALL = dist/$(DISTDIR).tar.gz + all: rm -rf ./build virtualenv ./build - ./build/bin/pip install --no-index --find-links=$(CURDIR) -r requirements.txt + ./build/bin/pip install --no-index --find-links=$(DISTDIR) --use-wheel -r requirements.txt + ./build/bin/pip install --no-index --find-links=$(DISTDIR) --no-deps -r requirements-colab-plugins.txt virtualenv --relocatable ./build clean: $(RM) -r ./build -SOURCES = Makefile requirements.txt *.tar.* *.whl *.zip +SOURCES = Makefile requirements.txt requirements-colab-plugins.txt *.tar.* *.whl *.zip install: mkdir -p $$(dirname $(TARGET)) rm -rf $(TARGET) cp -r ./build $(TARGET) -DISTDIR = $(NAME)-$(VERSION) -TARBALL = dist/$(DISTDIR).tar.gz sdist: $(TARBALL) $(TARBALL): mkdir -p $$(dirname $(TARBALL)) $(RM) $(TARBALL) - mkdir $(DISTDIR) + mkdir -p $(DISTDIR) ln $(SOURCES) $(DISTDIR) tar caf $(TARBALL) $(DISTDIR) $(RM) -r $(DISTDIR) distclean: $(RM) -r $$(dirname $(TARBALL)) src/ - $(RM) --verbose *.tar.* *.whl *.zip + $(RM) -r $(DISTDIR) downloadtar: - pip install --download $(CURDIR) -r requirements.txt - pip install --download $(CURDIR) -r requirements-colab-plugins.txt --no-deps + mkdir -p $(DISTDIR) + pip install --download $(DISTDIR) -r requirements.txt + pip install --download $(DISTDIR) -r requirements-colab-plugins.txt --no-deps diff --git a/README.md b/README.md new file mode 100644 index 0000000..888afb5 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +Dependencies: +* libxml2-devel +* libxslt-devel +* python-devel +* postgresql-devel -- libgit2 0.21.2