Skip to content

Commit

Permalink
Update ROSCO install dir, other setup fun stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Feb 10, 2021
1 parent 52465fe commit 25ef7a7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,19 @@
import io
import os
import sys
from shutil import rmtree

from shutil import rmtree, copy
import glob
import platform
from setuptools import find_packages, setup, Command
from numpy.distutils.command.build_ext import build_ext
from numpy.distutils.core import setup, Extension

import multiprocessing as mp
from distutils.core import run_setup
from setuptools import find_packages
from numpy.distutils.command.build_ext import build_ext
from numpy.distutils.core import setup, Extension
from io import open

# Package meta-data.
NAME = 'rosco-toolbox'
Expand All @@ -31,7 +41,7 @@
EMAIL = '[email protected]'
AUTHOR = 'NREL National Wind Technology Center'
REQUIRES_PYTHON = '>=3.4'
VERSION = '2.1.4'
VERSION = '2.1.0'

# These packages are required for all of the code to be executed.
# - Maybe you can get away with older versions...
Expand Down Expand Up @@ -86,9 +96,9 @@ def build_extension(self, ext):

cmake_args = ['-DBUILD_SHARED_LIBS=OFF']
cmake_args += ['-DCMAKE_Fortran_FLAGS=-ffree-line-length-0']
cmake_args += ['-DCMAKE_INSTALL_PREFIX={}'.format(localdir)]

if platform.system() == 'Windows':
cmake_args += ['-DCMAKE_INSTALL_PREFIX={}'.format(localdir)]
if self.compiler.compiler_type == 'msvc':
cmake_args += ['-DCMAKE_GENERATOR_PLATFORM=x64']
else:
Expand Down

0 comments on commit 25ef7a7

Please sign in to comment.