forked from WISDEM/WEIS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ROSCO install dir, other setup fun stuff
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' | ||
|
@@ -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... | ||
|
@@ -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: | ||
|