Changeset c8843be in sasview


Ignore:
Timestamp:
Mar 24, 2016 11:20:08 AM (8 years ago)
Author:
smk78
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
8e7044c
Parents:
e81f6dd
Message:

Modified setup.py to force it to remove the sasview build directory
before it starts to build sasview; kinda curious it didn't do that
anyway…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r9274711 rc8843be  
    55import sys 
    66import os 
     7import shutil 
    78from setuptools import setup, Extension 
    89from distutils.command.build_ext import build_ext 
    910from distutils.core import Command 
     11from shutil import rmtree 
    1012 
    1113try: 
     
    4244#                      'sum_Ap1_1_Ap2.pyc', 'sum_p1_p2.pyc', 
    4345#                      'testmodel_2.pyc', 'testmodel.pyc', 'plugins.log'] 
     46 
     47CURRENT_SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) 
     48SASVIEW_BUILD = os.path.join(CURRENT_SCRIPT_DIR, "build") 
     49 
    4450sas_dir = os.path.join(os.path.expanduser("~"),'.sasview') 
    4551if os.path.isdir(sas_dir): 
     
    5965    #             file_path =  os.path.join(f_path, f) 
    6066    #             os.remove(file_path) 
     67    if os.path.exists(SASVIEW_BUILD): 
     68        print "Removing existing build directory", SASVIEW_BUILD, "for a clean build" 
     69        shutil.rmtree(SASVIEW_BUILD) 
    6170                     
    6271# 'sys.maxsize' and 64bit: Not supported for python2.5 
Note: See TracChangeset for help on using the changeset viewer.