Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added conda recipe, setup.py, and other changes to make python packag…
…ing possible
- Loading branch information
1 parent
95cf763
commit ac13703
Showing
10 changed files
with
88 additions
and
36 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
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
from ._lerc import * |
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
Empty file.
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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import setuptools | ||
import os | ||
|
||
dir_path = os.path.dirname(os.path.realpath(__file__)) | ||
readme_path = os.path.join(dir_path, "..", "..", "README.md") | ||
|
||
try: | ||
with open(readme_path, "r") as fh: | ||
long_description = fh.read() | ||
except Exception: | ||
long_description = "Limited Error Raster Compression" | ||
|
||
|
||
setuptools.setup( | ||
name="lerc", | ||
version="0.1.0", | ||
author="esri", | ||
author_email="python@esri.com", | ||
description="Limited Error Raster Compression", | ||
#long_description=long_description, | ||
#long_description_content_type="text/markdown", | ||
url="https://github.com/Esri/lerc", | ||
packages=setuptools.find_packages(), | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Operating System :: OS Independent", | ||
], | ||
package_data={ | ||
"lerc":["*.dll", "*.lib", ".so"]}, | ||
python_requires='>=3.6') |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## conda package | ||
|
||
To build the conda package: | ||
1. Place the appropriate compiled binaries in `/OtherLanguages/Python/lerc/` | ||
- For windows, this is the `.lib` and `.dll` files | ||
- For Linux, this is the `.so` files | ||
- For OSX, this is the `.dylib` files | ||
2. In this directory, run `conda build lerc --output-folder /some/output/folder --python 3.6` to build the python3.6 package for the architecture of your host computer | ||
3. Repeat step 2 with `--python 3.7`, then again with `--python 3.8` (Or whatever python versions you want to release in the future) | ||
4. Repeat steps 1-3 for the other architectures you want to release for (Windows, Linux, OSX) |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"%PYTHON%" setup.py install | ||
if errorlevel 1 exit 1 |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
$PYTHON setup.py install |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package: | ||
name: lerc | ||
version: 0.1.0 | ||
|
||
requirements: | ||
build: | ||
- python | ||
- setuptools | ||
- vs2015_runtime >=14 [win] | ||
- numpy | ||
run: | ||
- python | ||
- vs2015_runtime >=14 [win] | ||
- numpy | ||
|
||
source: | ||
path: ../../../OtherLanguages/Python | ||
|
||
test: | ||
imports: | ||
- lerc |