xtensor-stack / Xtensor.jl

Julia package for xtensor-julia
http://quantstack.net/xtensor
BSD 3-Clause "New" or "Revised" License
41 stars 6 forks source link

Clean created directories when building #27

Closed sglyon closed 7 years ago

sglyon commented 7 years ago

When I try to do Pkg.build("Xtensor") I get the following error:

INFO: Attempting to Create directory /Users/sglyon/.julia/v0.6/Xtensor/builds/xtensor
INFO: Directory /Users/sglyon/.julia/v0.6/Xtensor/builds/xtensor already created
INFO: Changing Directory to /Users/sglyon/.julia/v0.6/Xtensor/builds/xtensor
fatal: destination path '/Users/sglyon/.julia/v0.6/Xtensor/deos/xtensor' already exists and is not an empty directory.
=============================================================================================================[ ERROR: Xtensor ]==============================================================================================================

LoadError: failed process: Process(`git clone -b 0.9.0 --single-branch https://github.com/QuantStack/xtensor /Users/sglyon/.julia/v0.6/Xtensor/deos/xtensor`, ProcessExited(128)) [128]
while loading /Users/sglyon/.julia/v0.6/Xtensor/deps/build.jl, in expression starting on line 84

=============================================================================================================================================================================================================================================

I think this indicates that we should just delete that directory (if it exists) before starting to build

SylvainCorlay commented 7 years ago

Thanks, it seems that you have artefacts from the previous build. Indeed we should delete the directory in the build steps.

SylvainCorlay commented 7 years ago

I think that this should be ok now.