Skip to content

Commit

Permalink
Install Cython in isolated env using fortunate-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jan 31, 2019
1 parent d5d5d16 commit f580542
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[build-system]
requires = ["fortunate-pkg"]

[tool.towncrier]
package = "aiohttp"
filename = "CHANGES.rst"
Expand Down
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@
DistutilsPlatformError)

from setuptools import Extension, setup
try:
from fortunate_pkg import maybe_install_pkgs
except ImportError:
import os
os.system('echo "Running outside of pip\'s isolated virtualenv."')
else:
maybe_install_pkgs(('cython', ))


if sys.version_info < (3, 5, 3):
Expand Down

0 comments on commit f580542

Please sign in to comment.