Skip to content

Commit

Permalink
Don't retain .py, don't build_ext in travis, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgsmith61591 committed Jul 5, 2017
1 parent a9e15da commit 775275e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions MANIFEST.in
@@ -1,8 +1,8 @@
# recursive-include doc *
recursive-include examples *
recursive-include pyramid/__check_build *.c *.py* *.so
recursive-include pyramid/arima *.c *.py* *.so
recursive-include pyramid/compat *.py*
recursive-include pyramid/datasets *.py*
recursive-include pyramid/utils *.py*
recursive-include pyramid/__check_build *.c *.pyc *.pyx *.pyd *.so
recursive-include pyramid/arima *.c *.pyc *.pyx *.pyd *.so
recursive-include pyramid/compat *.pyc *.pyx *.pyd
recursive-include pyramid/datasets *.pyc *.pyx *.pyd
recursive-include pyramid/utils *.pyc *.pyx *.pyd
include README.md
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -53,7 +53,7 @@ test_script:

after_test:
# After the test, build the wheels.
- python setup.py build_ext sdist bdist_wheel
- python setup.py sdist bdist_wheel

artifacts:
# Archive the generated wheel package in the ci.appveyor.com build report.
Expand Down
2 changes: 1 addition & 1 deletion build_tools/travis/after_success.sh
Expand Up @@ -9,7 +9,7 @@ set -e
# after the success of the build, build the ext again to ensure the .so
# files are present in case we are deploying. Otherwise the .whl files will
# be built without the compiled .so Cython files
python setup.py build_ext
# python setup.py build_ext

if [[ "$COVERAGE" == "true" ]]; then
# Need to run coveralls from a git checkout, so we copy .coverage
Expand Down
6 changes: 3 additions & 3 deletions pyramid/__check_build/__init__.py
Expand Up @@ -24,7 +24,7 @@ def raise_build_error(e):
msg = INPLACE_MSG
dir_content = list()
for i, filename in enumerate(os.listdir(local_dir)):
if ((i + 1) % 3):
if (i + 1) % 3:
dir_content.append(filename.ljust(26))
else:
dir_content.append(filename + '\n')
Expand All @@ -41,5 +41,5 @@ def raise_build_error(e):

try:
from ._check_build import check_build
except ImportError as e:
raise_build_error(e)
except ImportError as ie:
raise_build_error(ie)
4 changes: 1 addition & 3 deletions setup.py
Expand Up @@ -56,11 +56,9 @@
# option for setup.py is invalid.
import setuptools
from setuptools.dist import Distribution
from setuptools import find_packages

class BinaryDistribution(Distribution):
def is_pure(self):
return False

def has_ext_modules(self):
return True

Expand Down

0 comments on commit 775275e

Please sign in to comment.