Skip to content

Commit

Permalink
Uploading Mac OS X wheel to repository.
Browse files Browse the repository at this point in the history
  • Loading branch information
Administrador authored and Administrador committed Apr 1, 2017
1 parent 366bacd commit eef61fa
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ __pycache__/
env/
build/
develop-eggs/
dist/
# dist/
downloads/
eggs/
lib/
Expand Down
7 changes: 0 additions & 7 deletions BUILD

This file was deleted.

12 changes: 12 additions & 0 deletions DIST_STEPS
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BUILD GEOMODELR TO DISTRIBUTE

LINUX:
python setup.py sdist
twine upload -u username -p password dist/geomodelr-x.y.z.tar.gz
MAC OS X:
- Install ports
- Install boost ports. Make sure to activate python.
sudo ports install boost
- Install pip. Make sure to activate python.
sudo ports install pip
-
Binary file not shown.
Binary file added dist/geomodelr-0.1.2.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions geomodelr/cpp/model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ double Topography::height(const point2& pt) const {
point2 pos(gx(pt), gy(pt));
geometry::subtract_point(pos, this->point);
geometry::divide_point(pos, this->sample);
size_t x = int(gx(pos));
size_t y = int(gy(pos));
int x = int(gx(pos));
int y = int(gy(pos));

if ( x < 0 )
x = 0;
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def if_env(**kwargs):
varname, default = kwargs.popitem()
try:
values = os.environ[varname].split(os.pathsep)
if len(value) < 1:
if len(values) < 1:
return default
return values
except KeyError:
Expand Down

0 comments on commit eef61fa

Please sign in to comment.