Spaces:
Running
on
Zero
Running
on
Zero
File size: 949 Bytes
e6f20b8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
import sys
from setuptools import setup, Extension
from setuptools.command.install import install
class InstallWrapper(install):
def run(self):
try:
import faiss
except ImportError:
sys.stderr.write("\nERROR: faiss package not installed (install either faiss-cpu or " \
"faiss-gpu before installing this package.).\n\n")
sys.exit(1)
install.run(self)
setup(
name="asmk",
version="0.1",
description="ASMK Python implementation for ECCV'20 paper \"Learning and aggregating deep " \
"local descriptors for instance-level recognition\"",
author="Tomas Jenicek, Giorgos Tolias",
packages=[
"asmk",
],
ext_modules=[Extension("asmk.hamming", ["cython/hamming.c"])],
install_requires=[
"numpy",
"pyaml",
],
cmdclass={
"install": InstallWrapper,
},
zip_safe=True)
|