Download setup.py from nccr-catalysis/atom-detection: direct link, hf CLI and curl.
- Browser
- Download file 555 Bytes
-
https://huggingface.co/spaces/nccr-catalysis/atom-detection/resolve/main/setup.py
- Command line
-
hf download hf://spaces/nccr-catalysis/atom-detection/setup.py
-
curl -L -o setup.py https://huggingface.co/spaces/nccr-catalysis/atom-detection/resolve/main/setup.py
555 Bytes
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| @author : Romain Graux | |
| @date : 2023 April 06, 17:33:28 | |
| @last modified : 2023 April 24, 15:59:09 | |
| @last modified : 2023 April 24, 15:59:09 | |
| """ | |
| import os | |
| import logging | |
| from distutils.core import setup, Extension | |
| logging.basicConfig(level=logging.INFO) | |
| os.environ["CC"] = "g++" | |
| fast_filters_module = Extension( | |
| "fast_filters", | |
| sources=["atoms_detection/fast_filters.cpp"], | |
| ) | |
| setup( | |
| name="atoms_detection", | |
| version="0.0.1a0", | |
| description="", | |
| ext_modules=[fast_filters_module], | |
| ) | |