Commit 04b9a3bb authored by Benoit Martin's avatar Benoit Martin

fix conda-build not downloading from pypi

parent b43ed994
Pipeline #54951152 passed with stages
in 154 minutes and 15 seconds
......@@ -49,7 +49,7 @@ stages:
script:
- id && pwd && ls -alh
- mkdir deformetrica-build && cd deformetrica-build
- conda install conda-build anaconda-client && conda update conda conda-build anaconda-client
- conda install conda-build==3.16.3 anaconda-client pip && conda update conda anaconda-client
# - export GIT_SSL_NO_VERIFY=1
- BUILD_GUI=TRUE PACKAGE_NAME=deformetrica conda-build -c pytorch -c anaconda -c conda-forge --output-folder . ../conda
# - BUILD_GUI=FALSE PACKAGE_NAME=deformetrica-nox conda-build --py 3.5 --py 3.6 --py 3.7 -c pytorch -c anaconda -c conda-forge --output-folder . ../conda/meta.yaml # TODO
......
......@@ -16,7 +16,7 @@ build:
requirements:
build:
- python {{ python }}
- python
- setuptools
- pip
run:
......
......@@ -8,9 +8,6 @@ from setuptools import setup, find_packages
from src import __version__
import logging
logger = logging.getLogger()
try: # for pip >= 10
from pip._internal.req import parse_requirements
......@@ -34,11 +31,11 @@ def str_to_bool(s):
# build gui by default
build_gui = str_to_bool(os.environ['BUILD_GUI']) if 'BUILD_GUI' in os.environ else True
logger.info('Building Deformetrica version ' + __version__ + ', BUILD_GUI=' + str(build_gui))
print('Building Deformetrica version ' + __version__ + ', BUILD_GUI=' + str(build_gui))
def build_deformetrica():
logger.info('build_deformetrica()')
print('build_deformetrica()')
setup(
name='deformetrica',
version=__version__,
......@@ -80,12 +77,12 @@ def build_deformetrica():
'pykeops==0.1.5',
'PyQt5>=5.11',
],
extra_link_args=['-headerpad_max_install_names']
# extra_link_args=['-headerpad_max_install_names']
)
def build_deformetrica_nox():
logger.info('build_deformetrica_nox()')
print('build_deformetrica_nox()')
setup(
name='deformetrica-nox',
version=__version__,
......@@ -125,7 +122,7 @@ def build_deformetrica_nox():
'gputil>=1.3',
'pykeops==0.1.5',
],
extra_link_args=['-headerpad_max_install_names']
# extra_link_args=['-headerpad_max_install_names']
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment