Skip to content

Commit

Permalink
move deleting code for orm to configure()
Browse files Browse the repository at this point in the history
  • Loading branch information
toge committed May 23, 2022
1 parent c10f4d4 commit ce771ed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions recipes/drogon/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def export_sources(self):
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC

def configure(self):
if self.options.shared:
del self.options.fPIC
self.options["trantor"].shared = True
if not self.options.with_orm:
del self.options.with_postgres
del self.options.with_postgres_batch
Expand All @@ -62,11 +67,6 @@ def config_options(self):
elif not self.options.with_postgres:
del self.options.with_postgres_batch

def configure(self):
if self.options.shared:
del self.options.fPIC
self.options["trantor"].shared = True

@property
def _compilers_minimum_version(self):
return {
Expand Down Expand Up @@ -99,13 +99,13 @@ def requirements(self):
self.requires("coz/cci.20210322")
if self.options.with_brotli:
self.requires("brotli/1.0.9")
if self.options.with_postgres:
if self.options.get_safe("with_postgres"):
self.requires("libpq/14.2")
if self.options.with_mysql:
if self.options.get_safe("with_mysql"):
self.requires("libmysqlclient/8.0.25")
if self.options.with_sqlite:
if self.options.get_safe("with_sqlite"):
self.requires("sqlite3/3.38.5")
if self.options.with_redis:
if self.options.get_safe("with_redis"):
self.requires("hiredis/1.0.2")

def source(self):
Expand Down

0 comments on commit ce771ed

Please sign in to comment.